mailr27631 - /trunk/gui/input_elements/sequence_2D.py


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

Header


Content

Posted by edward on February 12, 2015 - 18:40:
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:




Related Messages


Powered by MHonArc, Updated Thu Feb 12 19:00:02 2015