[chronojump] Fixed 12 graphs max on side graph of ec curves



commit c89dc3fad3335e8cf01a1ae2b86cd54aaf58b844
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Apr 3 13:04:25 2014 +0200

    Fixed 12 graphs max on side graph of ec curves

 src/gui/encoder.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 26381ac..f12c185 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -2683,8 +2683,11 @@ Log.WriteLine(str);
 
 
        private bool curvesNumOkToSideCompare() {
-               if(radiobutton_encoder_analyze_data_current_signal.Active &&
-                       UtilGtk.CountRows(encoderCaptureListStore) <= 12)
+               if(radiobutton_encoder_analyze_data_current_signal.Active && 
+                               (
+                                       (ecconLast == "c" && UtilGtk.CountRows(encoderCaptureListStore) <= 
12) ||
+                                       (ecconLast != "c" && UtilGtk.CountRows(encoderCaptureListStore) <= 24)
+                               ) )
                        return true;
                else if(radiobutton_encoder_analyze_data_user_curves.Active &&
                                Convert.ToInt32(label_encoder_user_curves_active_num.Text) <= 12)


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