mailr13205 - /branches/gui_testing/gui/user_functions/molecule.py


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

Header


Content

Posted by edward on June 23, 2011 - 21:10:
Author: bugman
Date: Thu Jun 23 21:10:10 2011
New Revision: 13205

URL: http://svn.gna.org/viewcvs/relax?rev=13205&view=rev
Log:
Fix for the molecule.copy() GUI user function for when the molecule being 
copied has no name.


Modified:
    branches/gui_testing/gui/user_functions/molecule.py

Modified: branches/gui_testing/gui/user_functions/molecule.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/user_functions/molecule.py?rev=13205&r1=13204&r2=13205&view=diff
==============================================================================
--- branches/gui_testing/gui/user_functions/molecule.py (original)
+++ branches/gui_testing/gui/user_functions/molecule.py Thu Jun 23 21:10:10 
2011
@@ -179,7 +179,9 @@
         pipe_to = gui_to_str(self.pipe_to.GetValue())
 
         # The molecule names.
-        mol_from = "#" + gui_to_str(self.mol_from.GetValue())
+        mol_from = gui_to_str(self.mol_from.GetValue())
+        if mol_from:
+            mol_from = "#" + mol_from
         mol_to = gui_to_str(self.mol_to.GetValue())
         if mol_to:
             mol_to = "#" + mol_to




Related Messages


Powered by MHonArc, Updated Thu Jun 23 21:20:02 2011