[chronojump] Fixed bug on triggers on analyze graphs when there are ON and not OFF or viceversa
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed bug on triggers on analyze graphs when there are ON and not OFF or viceversa
- Date: Fri, 26 Mar 2021 15:27:02 +0000 (UTC)
commit 177ae12a4070fb104949db8f3aeafcec5146a3c1
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Mar 26 16:26:27 2021 +0100
Fixed bug on triggers on analyze graphs when there are ON and not OFF or viceversa
src/trigger.cs | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/src/trigger.cs b/src/trigger.cs
index a1276faf..1fa6506d 100644
--- a/src/trigger.cs
+++ b/src/trigger.cs
@@ -183,8 +183,13 @@ public class TriggerList
//but can be ',' if we pass some ints to a csv
public string ToRCurvesString(Type3 type3, char sepChar)
{
+ /*
+ cannot do it here because maybe we have triggers on but not off,
+ so if we come by off, l.Count is not a good indicator to pass a -1,
+ so do it at end of this method with if(s == "")
if(l.Count == 0)
return TriggersNotFoundString;
+ */
string s = "";
string sep = "";
@@ -201,7 +206,11 @@ public class TriggerList
sep = sepChar.ToString();
}
}
- return s;
+
+ if(s == "")
+ return TriggersNotFoundString;
+ else
+ return s;
}
public int Count()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]