From 3ab2982c85ef8ab1ad711b563960f61a1ba18ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Sun, 9 Jun 2013 16:53:16 +0000 Subject: [PATCH] Small correction to the plot with multiple axes. --- GUI/PlotPanel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GUI/PlotPanel.cs b/GUI/PlotPanel.cs index a7497e4..e51e46b 100644 --- a/GUI/PlotPanel.cs +++ b/GUI/PlotPanel.cs @@ -227,13 +227,14 @@ namespace OpenHardwareMonitor.GUI { var type = pair.Key; axis.StartPosition = 0; axis.EndPosition = 1; - axis.PositionTier = tier; + axis.PositionTier = axis.IsAxisVisible ? tier : 0; if (axis.IsAxisVisible) tier++; axis.MajorGridlineStyle = LineStyle.None; axis.MinorGridlineStyle = LineStyle.None; } } + } public void InvalidatePlot() {