[chronojump] RaceAnalyzer capture without device does not draw vertical segments of previous file



commit 13fb3cfc99677c6fc7cde256611e17795b71066c
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Feb 12 13:41:34 2022 +0100

    RaceAnalyzer capture without device does not draw vertical segments of previous file

 src/gui/app1/runEncoder.cs | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index e8844659c..6969915bf 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -378,6 +378,11 @@ public partial class ChronoJumpWindow
                cairoGraphRaceAnalyzerPoints_st_l = new List<PointF>();
                cairoGraphRaceAnalyzerPoints_at_l = new List<PointF>();
 
+               //to not show old vertical segments info on a capture that maybe cannot be done by lack of 
device
+               if(currentRunEncoderExercise != null)
+                       reCGSD = new RunEncoderCaptureGetSpeedAndDisplacement(
+                                       currentRunEncoderExercise.SegmentMeters, 
currentRunEncoderExercise.SegmentVariableCm);
+
                updateRaceAnalyzerCapturePositionTime(true);
                updateRaceAnalyzerCaptureSpeedTime(true);
                updateRaceAnalyzerCaptureAccelTime(true);


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