[chronojump] Fixed bug in signal-curves linking



commit a61263593d09006799a03f4d4ddc1c9a4442b4ee
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon May 19 17:56:54 2014 +0200

    Fixed bug in signal-curves linking

 src/gui/encoder.cs |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 5dc4561..36c14b3 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -4481,6 +4481,17 @@ Log.WriteLine(str);
                                                                ));
                                }
 
+
+                               plotCurvesGraphDoPlot(mainVariable, mainVariableHigher, mainVariableLower, 
captureCurvesBarsData,
+                                               false); //not capturing
+               
+                               //autosave signal (but not in load)
+                               if(action == encoderActions.CURVES)
+                                       encoder_pulsebar_capture.Text = encoderSaveSignalOrCurve("signal", 
0); //this updates encoderSignalUniqueID
+                               else
+                                       encoder_pulsebar_capture.Text = "";
+                               
+                               
                                //find the saved curves
                                ArrayList linkedCurves = SqliteEncoder.SelectSignalCurve(false, 
                                                Convert.ToInt32(encoderSignalUniqueID), //signal
@@ -4510,16 +4521,6 @@ Log.WriteLine(str);
                                        }
                                }
 
-
-
-                               plotCurvesGraphDoPlot(mainVariable, mainVariableHigher, mainVariableLower, 
captureCurvesBarsData,
-                                               false); //not capturing
-               
-                               //autosave signal (but not in load)
-                               if(action == encoderActions.CURVES)
-                                       encoder_pulsebar_capture.Text = encoderSaveSignalOrCurve("signal", 0);
-                               else
-                                       encoder_pulsebar_capture.Text = "";
                        }
 
                        if(action == encoderActions.CAPTURE_IM && ! encoderProcessCancel && ! 
encoderProcessProblems) 


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