[chronojump] RunEncoder clicking on capture blanks the capture Cairo scatterplot graphs
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] RunEncoder clicking on capture blanks the capture Cairo scatterplot graphs
- Date: Mon, 12 Apr 2021 16:19:34 +0000 (UTC)
commit 49845e4157d4bdac77b7d641adbece2718b81d69
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 12 18:19:04 2021 +0200
RunEncoder clicking on capture blanks the capture Cairo scatterplot graphs
src/gui/app1/runEncoder.cs | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index de224a7e..fb343dfc 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -270,10 +270,14 @@ public partial class ChronoJumpWindow
if(cairoRadial != null)
cairoRadial.ResetSpeedMax();
- if(cairoGraphRaceAnalyzer_dt != null)
- cairoGraphRaceAnalyzer_dt.Reset();
- if(cairoGraphRaceAnalyzer_st != null)
- cairoGraphRaceAnalyzer_st.Reset();
+ //blank Cairo scatterplot graphs
+ cairoGraphRaceAnalyzer_dt = null;
+ cairoGraphRaceAnalyzer_st = null;
+ cairoGraphRaceAnalyzerPoints_dt_l = new List<PointF>();
+ cairoGraphRaceAnalyzerPoints_st_l = new List<PointF>();
+ updateRaceAnalyzerCapturePositionTime(true);
+ updateRaceAnalyzerCaptureSpeedTime(true);
+
if(chronopicRegister.NumConnectedOfType(ChronopicRegisterPort.Types.ARDUINO_RUN_ENCODER) == 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]