[chronojump] Fixed a no-bug on forceSensor theoretically A>B



commit f492c9760d06ad07e041497431f1052506f5b433
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Dec 20 11:00:59 2021 +0100

    Fixed a no-bug on forceSensor theoretically A>B

 src/gui/app1/forceSensorAnalyze.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index ccd1a6f9e..857292eaa 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -903,10 +903,11 @@ public partial class ChronoJumpWindow
                        int secondValue = Convert.ToInt32(hscale_force_sensor_ai_b.Value);
                        //LogB.Information(string.Format("firstValue: {0}, secondValue: {1}", firstValue, 
secondValue));
 
+                       //note that is almost impossible in the ui, but just in case...
                        if(firstValue > secondValue) {
                                int temp = firstValue;
                                firstValue = secondValue;
-                               secondValue = firstValue;
+                               secondValue = temp;
                        }
 
                        //-1 and +1 to have the points at the edges to calcule the RFDs


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