[chronojump] Fixed last commit



commit 30ce48e10a4985010bc19d311d3a4ec179095fe7
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Mar 3 14:15:34 2020 +0100

    Fixed last commit

 src/gui/encoderGraphObjects.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/encoderGraphObjects.cs b/src/gui/encoderGraphObjects.cs
index 7e746afb..b56a34ed 100644
--- a/src/gui/encoderGraphObjects.cs
+++ b/src/gui/encoderGraphObjects.cs
@@ -715,7 +715,7 @@ public class EncoderGraphDoPlot
                                                double con = concentricPreValue - dBottom;
                                                layout_encoder_capture_curves_bars.SetMarkup(
                                                                //Convert.ToInt32(100.0 * (dTop - dBottom) / 
(concentricPreValue - dBottom)) + "%");
-                                                               Convert.ToInt32(100.0 * (ecc - con) / con) + 
"%");
+                                                               Convert.ToInt32(100.0 * 
UtilAll.DivideSafe(ecc - con, con)) + "%");
                                                textWidth = 1; textHeight = 1;
                                                layout_encoder_capture_curves_bars.GetPixelSize(out 
textWidth, out textHeight);
 


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