[chronojump] Care for having a currentPerson on new realtime jumpRj, runI cairo graphs
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Care for having a currentPerson on new realtime jumpRj, runI cairo graphs
- Date: Fri, 17 Sep 2021 11:35:36 +0000 (UTC)
commit dc8dfec257ed0cac65ffcdbb67aed335b812e1f4
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Sep 17 13:34:36 2021 +0200
Care for having a currentPerson on new realtime jumpRj, runI cairo graphs
src/gui/eventExecute.cs | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index c77e5621e..e67ac3bb2 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -737,6 +737,9 @@ public partial class ChronoJumpWindow
public void PrepareJumpReactiveRealtimeCaptureGraph (double lastTv, double lastTc, string tvString,
string tcString, string type,
bool volumeOn, Preferences.GstreamerTypes gstreamer, RepetitiveConditionsWindow
repetitiveConditionsWin)
{
+ if(currentPerson == null)
+ return;
+
cairoPaintBarsPreRealTime = new CairoPaintBarsPreJumpReactiveRealtimeCapture(
event_execute_drawingarea_realtime_capture_cairo,
preferences.fontType.ToString(), current_mode,
currentPerson.Name, type, preferences.digitsNumber,//
preferences.heightPreferred,
@@ -861,6 +864,9 @@ public partial class ChronoJumpWindow
// Reactive jump
public void PrepareRunIntervalRealtimeCaptureGraph (double distance, double lastTime, string
timesString, double distanceTotal, string distancesString, string type)
{
+ if(currentPerson == null)
+ return;
+
//discard RSA (at the moment)
if( currentEventExecute.PrepareEventGraphRunIntervalObject.distancesString.Contains("R") )
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]