Author: bugman
Date: Thu Feb 12 18:40:34 2015
New Revision: 27631

URL: http://svn.gna.org/viewcvs/relax?rev=27631&view=rev
Log:
Fix for bug #23265 (https://gna.org/bugs/?23265).

This is the failure of the edit buttons in the user function GUI windows.  The 
problem was that the
column titles of the window opened by the edit button were being incorrectly 
handled if the
dimensions of the window were not supplied.


Modified:
    trunk/gui/input_elements/sequence_2D.py

Modified: trunk/gui/input_elements/sequence_2D.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/input_elements/sequence_2D.py?rev=27631&r1=27630&r2=27631&view=diff
==============================================================================
--- trunk/gui/input_elements/sequence_2D.py     (original)
+++ trunk/gui/input_elements/sequence_2D.py     Thu Feb 12 18:40:34 2015
@@ -161,7 +161,10 @@
         # Store the titles.
         self.titles = titles
         if titles == None:
-            self.titles = [wx.EmptyString] * dim[1]
+            if dim == None:
+                self.titles = [wx.EmptyString]
+            else:
+                self.titles = [wx.EmptyString] * dim[1]
 
         # Determine the dimensions if not given.
         if dim == None:


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to