[chronojump] ForceSensor AI, better condition for zoom at: OutsideGraphChangeValues



commit 658ba09ab9d03812eb1a882cf945c9b7b8c48631
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Mar 16 18:14:53 2020 +0100

    ForceSensor AI, better condition for zoom at: OutsideGraphChangeValues

 src/forceSensor.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/forceSensor.cs b/src/forceSensor.cs
index 3701f624..158973fd 100644
--- a/src/forceSensor.cs
+++ b/src/forceSensor.cs
@@ -1032,7 +1032,9 @@ public class ForceSensorCapturePoints
                bool change = false;
                if(lastTime + GetTimeInPx(marginLeft) + GetTimeInPx(marginRight) > RealWidthG ||
                                GetForceInPx(minForce) > heightG ||
-                               GetForceInPx(maxForce) < 0)
+                               GetForceInPx(maxForce) < 0 ||
+                               GetForceInPx(maxForce) == GetForceInPx(minForce)
+                               )
                {
                        RealHeightG = Convert.ToInt32(Math.Ceiling(maxForce)); //Math.Ceiling to ensure the 
displ will fit
 


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