[chronojump] Cannot RaceEncoderAnalyze if ! sprint or variable segments



commit d8a2726023fcda6608a41897ebb53e219e5e0a6a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Feb 2 16:01:58 2022 +0100

    Cannot RaceEncoderAnalyze if ! sprint or variable segments

 src/gui/app1/runEncoderAnalyze.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/runEncoderAnalyze.cs b/src/gui/app1/runEncoderAnalyze.cs
index 8f8fec752..d73fa39b8 100644
--- a/src/gui/app1/runEncoderAnalyze.cs
+++ b/src/gui/app1/runEncoderAnalyze.cs
@@ -192,9 +192,9 @@ public partial class ChronoJumpWindow
                        return;
                }
 
-               if(currentRunEncoderExercise.SegmentMeters < 0)
+               if(! currentRunEncoderExercise.IsSprint || currentRunEncoderExercise.SegmentMeters < 0)
                {
-                       new DialogMessage(Constants.MessageTypes.WARNING, "Currently cannot analyze exercises 
with variable segments");
+                       new DialogMessage(Constants.MessageTypes.WARNING, "Currently cannot analyze exercises 
that are not an sprint or have variable segments.");
                        return;
                }
 


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