[chronojump/FS-TFT-Menu] CairoBars barWidth is inherited properly



commit 0a8cdd6daa51014b2333f12761c4043f63902bbb
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Apr 19 12:36:17 2022 +0200

    CairoBars barWidth is inherited properly

 src/gui/cairo/bars.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/cairo/bars.cs b/src/gui/cairo/bars.cs
index a6cbd2a72..7c98d5102 100644
--- a/src/gui/cairo/bars.cs
+++ b/src/gui/cairo/bars.cs
@@ -1186,7 +1186,7 @@ public class CairoBars1Series : CairoBars
                   divide graphWidhtUsable by total objects (bars, leftrightspace, spacesbetweenbars)
                   for 3 bars on ratios 1, .5, .5, this will be 5
                   */
-               double barWidth = UtilAll.DivideSafe(graphWidthUsable,
+               barWidth = UtilAll.DivideSafe(graphWidthUsable,
                        barMain_l.Count * barWidthRatio + 2*sideWidthRatio + (barMain_l.Count-1) * 
spaceBetweenBarsRatio);
                double distanceBetweenCols = barWidth * spaceBetweenBarsRatio;
 
@@ -1528,7 +1528,7 @@ public class CairoBarsNHSeries : CairoBars
                   for 3 (double) bars on ratios 1, .5, .5, this will be 8
                   */
                int series = 2;
-               double barWidth = UtilAll.DivideSafe(graphWidthUsable,
+               barWidth = UtilAll.DivideSafe(graphWidthUsable,
                        series * barMain_l.Count * barWidthRatio +
                        2*sideWidthRatio + (barMain_l.Count-1) * spaceBetweenBarsRatio);
                double distanceBetweenCols = barWidth * spaceBetweenBarsRatio;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]