mailr14065 - /branches/gui_testing/gui/misc.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 02, 2011 - 15:44:
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




Related Messages


Powered by MHonArc, Updated Tue Aug 02 16:00:01 2011