[chronojump] Fixed crash on encoder capture with clusters when no repetitions found (since 2.2.0)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed crash on encoder capture with clusters when no repetitions found (since 2.2.0)
- Date: Thu, 17 Feb 2022 16:02:54 +0000 (UTC)
commit 8d5700492dba514091db50950168e5c049833a84
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Feb 17 17:00:05 2022 +0100
Fixed crash on encoder capture with clusters when no repetitions found (since 2.2.0)
src/encoderRhythm.cs | 2 --
src/gui/app1/encoder.cs | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/encoderRhythm.cs b/src/encoderRhythm.cs
index f5ea26c38..41e0d5598 100644
--- a/src/encoderRhythm.cs
+++ b/src/encoderRhythm.cs
@@ -447,8 +447,6 @@ public class EncoderRhythmExecuteJustClusters : EncoderRhythmExecute
if(restTime < 0)
return "";
- //LogB.Information("encoderRhythm.RestClustersSeconds: " +
encoderRhythm.RestClustersSeconds.ToString());
- //LogB.Information("clusterRestSeconds.Elapsed.TotalSeconds: " +
clusterRestSeconds.Elapsed.TotalSeconds.ToString());
return string.Format(Catalog.GetString("Resting {0} s"), Util.TrimDecimals(restTime, 1));
}
}
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index 1392c3ac2..07de41d83 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -7555,9 +7555,9 @@ public partial class ChronoJumpWindow
Catalog.GetString("Set corrected. string was not fully
extended at the beginning."));
}
- if(encoderRhythm != null &&
+ if( encoderRhythm != null &&
! encoderRhythm.ActiveRhythm && encoderRhythm.UseClusters() &&
- encoderRhythmExecute != null)
+ encoderRhythmExecute != null &&
encoderRhythmExecute.ClusterRestDoing() )
encoderRhythmExecute.ClusterRestStop ();
} else { //ANALYZE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]