[chronojump] Bug fixed: run interval graphs works now



commit c6c5f26892ba6beb866aad43652559f7e9cb6c88
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Apr 8 14:07:59 2011 +0200

    Bug fixed: run interval graphs works now

 src/stats/main.cs |   28 +++++++++++++++++++++-------
 1 files changed, 21 insertions(+), 7 deletions(-)
---
diff --git a/src/stats/main.cs b/src/stats/main.cs
index 520d0a5..a54a58a 100644
--- a/src/stats/main.cs
+++ b/src/stats/main.cs
@@ -1032,10 +1032,17 @@ public class Stat
 				continue;
 			}
 
-			//in isRjEvolution then check it this serie will be shown (each jumper has a TC and a TF serie)
-			if( ! acceptCheckedData( divideAndRoundDown(countSeries)) ) {
-				countSeries ++;
-				continue;
+			//in isRjEvolution then check if this serie will be shown (each jumper has a TC and a TF serie)
+			if(isRjEvolution) {
+				if( ! acceptCheckedData( divideAndRoundDown(countSeries)) ) {
+					countSeries ++;
+					continue;
+				}
+			} else {
+				if(! acceptCheckedData(countSeries)) {
+					countSeries ++;
+					continue;
+				}
 			}
 
 			rD += "serie" + count.ToString() + " <- c(";
@@ -1068,9 +1075,16 @@ public class Stat
 		int i=0;
 		string sep2 = "";
 		foreach(GraphSerie serie in GraphSeries) {
-			if(acceptCheckedData(divideAndRoundDown(i++))) {
-				colNamesD += sep2 + "'" + serie.Title + "'";
-				sep2 = ", ";
+			if(isRjEvolution) {
+				if(acceptCheckedData(divideAndRoundDown(i++))) {
+					colNamesD += sep2 + "'" + serie.Title + "'";
+					sep2 = ", ";
+				}
+			} else {
+				if(acceptCheckedData(i++)) {
+					colNamesD += sep2 + "'" + serie.Title + "'";
+					sep2 = ", ";
+				}
 			}
 		}
 		//create rows



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