[chronojump] Fixed bug in refresh runI graph
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed bug in refresh runI graph
- Date: Thu, 11 Apr 2013 22:43:43 +0000 (UTC)
commit 2bb2cece4158a8d0363452d57e9fd8e0b1ea3bd7
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Apr 12 00:43:06 2013 +0200
Fixed bug in refresh runI graph
src/sqlite/runType.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/sqlite/runType.cs b/src/sqlite/runType.cs
index 3402dfd..ffe8f2b 100644
--- a/src/sqlite/runType.cs
+++ b/src/sqlite/runType.cs
@@ -488,7 +488,11 @@ class SqliteRunIntervalType : SqliteRunType
myRunType.FixedValue = Convert.ToInt32( reader[4].ToString() );
myRunType.Unlimited = Util.IntToBool(Convert.ToInt32(reader[5].ToString()));
myRunType.Description = reader[6].ToString();
+
myRunType.DistancesString = Util.ChangeDecimalSeparator(reader[7].ToString());
+ //if it has no value sqlite reads it as 0, but should be ""
+ if(myRunType.DistancesString == "0")
+ myRunType.DistancesString = "";
}
myRunType.IsPredefined = myRunType.FindIfIsPredefined();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]