Author: bugman Date: Tue Aug 2 15:44:24 2011 New Revision: 14065 URL: http://svn.gna.org/viewcvs/relax?rev=14065&view=rev Log: Fix for the gui_to_float() for when an integer is given. This is now converted to a float. Modified: branches/gui_testing/gui/misc.py Modified: branches/gui_testing/gui/misc.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/misc.py?rev=14065&r1=14064&r2=14065&view=diff ============================================================================== --- branches/gui_testing/gui/misc.py (original) +++ branches/gui_testing/gui/misc.py Tue Aug 2 15:44:24 2011 @@ -172,6 +172,10 @@ # Convert. val = eval(string) + # An int. + if type(val) == int: + val = float(val) + # Not a float! if type(val) != float: return string