[chronojump] jump treeview displayed weight in Kg (regardless weight % preference)



commit 4e1de63e0ad71624e422e2b08251a9ab493cef20
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jun 9 13:03:54 2016 +0200

    jump treeview displayed weight in Kg (regardless weight % preference)

 src/treeViewJump.cs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/treeViewJump.cs b/src/treeViewJump.cs
index 221857d..60a61f2 100644
--- a/src/treeViewJump.cs
+++ b/src/treeViewJump.cs
@@ -192,7 +192,10 @@ public class TreeViewJumps : TreeViewEvent
                                Convert.ToDouble(newJump.Weight.ToString()),
                                personWeight);
                
-               myData[count++] = Util.TrimDecimals(weightInKg.ToString(), pDN);
+               if(preferences.weightStatsPercent)
+                       myData[count++] = Util.TrimDecimals(newJump.Weight.ToString(), pDN);
+               else
+                       myData[count++] = Util.TrimDecimals(weightInKg.ToString(), pDN);
 
                myData[count++] = Util.TrimDecimals(newJump.Fall.ToString(), pDN);
                myData[count++] = Util.TrimDecimals(Util.GetHeightInCentimeters(newJump.Tv.ToString()), pDN);


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