[chronojump/FS-TFT-Menu] CairoBarsEncoder fixed nums under bars on ShowNReps since lasts commits



commit 295c9ab69109ed96e1dc86e6da0030490e75ccf7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Mar 31 12:57:56 2022 +0200

    CairoBarsEncoder fixed nums under bars on ShowNReps since lasts commits

 src/gui/eventExecute.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 4cb810e61..b14e4f1d2 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -3767,14 +3767,14 @@ public class CairoPaintBarplotPreEncoder : CairoPaintBarsPre
                        {
                                barA_l.Add(new PointF(count +1, mainVariableValue));
                                colorMain_l.Add(colorBar);
-                               names_l.Add((count +1).ToString());
+                               names_l.Add((pegbe.data9Variables.Count -data.Count +(count+1)).ToString());
                        } else
                        {
                                if(! Util.IsEven(count +1))     //if it is "impar"
                                {
                                        barA_l.Add(new PointF(UtilAll.DivideSafe(count+1,2), 
mainVariableValue));
                                        colorSecondary_l.Add(colorBar);
-                                       names_l.Add((UtilAll.DivideSafe(count,2) +1).ToString());
+                                       names_l.Add((UtilAll.DivideSafe(pegbe.data9Variables.Count 
-data.Count +count,2)+1).ToString());
                                } else {// "par"
                                        barB_l.Add(new PointF(UtilAll.DivideSafe(count+1,2), 
mainVariableValue));
                                        colorMain_l.Add(colorBar);


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