[chronojump] Fixed on treeview jumps add weight was not passed
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed on treeview jumps add weight was not passed
- Date: Mon, 14 Jul 2014 17:51:45 +0000 (UTC)
commit 52d9d258c78d8ad8b5e216a56b378bd6f3a9a083
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jul 14 19:50:46 2014 +0200
Fixed on treeview jumps add weight was not passed
src/gui/chronojump.cs | 1 +
src/treeViewJump.cs | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 5691874..ed8cebf 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3718,6 +3718,7 @@ Log.WriteLine("DDD 1");
new DialogMessage(Constants.MessageTypes.WARNING,
Catalog.GetString("Sorry, video cannot be stored."));
+ myTreeViewJumps.PersonWeight = currentPersonSession.Weight;
if(weightPercentPreferred)
myTreeViewJumps.Add(currentPerson.Name, currentJump);
else {
diff --git a/src/treeViewJump.cs b/src/treeViewJump.cs
index 01a94b4..8f8913b 100644
--- a/src/treeViewJump.cs
+++ b/src/treeViewJump.cs
@@ -209,8 +209,6 @@ public class TreeViewJumps : TreeViewEvent
myData[count++] =
Util.TrimDecimals(Util.GetHeightInCentimeters(newJump.Tv.ToString()), pDN);
- Log.WriteLine("personWeight: " + personWeight.ToString());
-
if (showPower) {
//takeoff has no tv. power should not be calculated
@@ -244,6 +242,13 @@ public class TreeViewJumps : TreeViewEvent
myData[count++] = newJump.UniqueID.ToString();
return myData;
}
+
+ //used on Add
+ public double PersonWeight {
+ set {
+ personWeight = value;
+ }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]