[chronojump/FS-TFT-Menu] At realtime bars do not show photocell values (-1s) for non Wichro



commit 348135a9df1c3bd48a936a59a2b42ee2420a93b2
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Apr 14 17:37:42 2022 +0200

    At realtime bars do not show photocell values (-1s) for non Wichro

 src/gui/cairo/bars.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/cairo/bars.cs b/src/gui/cairo/bars.cs
index 6f3316476..81234adbd 100644
--- a/src/gui/cairo/bars.cs
+++ b/src/gui/cairo/bars.cs
@@ -1203,7 +1203,7 @@ public class CairoBars1Series : CairoBars
                        resultOnBars_l.Add(new Point3F(x + barWidth/2, y, p.Y));
                        mouseLimits.AddInPos (i, x, x+barWidth);
 
-                       if (inBarNums_l.Count > 0 && inBarNums_l.Count > i)
+                       if (inBarNums_l.Count > 0 && inBarNums_l.Count > i && inBarNums_l[i] >= 0) //not show 
the non-Wichro -1s
                                printTextInBar(x +barWidth/2, graphHeight -bottomMargin -10,
                                                0, textHeight+2, inBarNums_l[i].ToString(), g, true);
 


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