[chronojump] Fixed 623146 - decimals on weight of person multiple add



commit 1929fb33f252265c3350c551c75d5e213d30602d
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Feb 18 11:44:56 2011 +0100

    Fixed 623146 - decimals on weight of person multiple add

 src/gui/person.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 2596e01..0db19aa 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -1820,7 +1820,7 @@ public class PersonAddMultipleWindow {
 			table_main.Attach (sexBox, (uint) 2, (uint) 3, (uint) count, (uint) count +1);
 
 
-			Gtk.SpinButton mySpin = new Gtk.SpinButton(0, 300, 1);
+			Gtk.SpinButton mySpin = new Gtk.SpinButton(0, 300, .1);
 			table_main.Attach (mySpin, (uint) 3, (uint) 4, (uint) count, (uint) count +1);
 			mySpin.Show();
 			spins.Add(mySpin);
@@ -1926,7 +1926,7 @@ public class PersonAddMultipleWindow {
 				insertPerson (
 						((Gtk.Entry)entries[i]).Text.ToString(), 
 						((Gtk.RadioButton)radiosM[i]).Active, 
-		 				(int) ((Gtk.SpinButton)spins[i]).Value);
+		 				(double) ((Gtk.SpinButton)spins[i]).Value);
 	}
 
 	void insertPerson (string name, bool male, double weight) 



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