mailr13053 - /branches/gui_testing/data/gui.py


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

Header


Content

Posted by edward on June 15, 2011 - 18:30:
Author: bugman
Date: Wed Jun 15 18:30:16 2011
New Revision: 13053

URL: http://svn.gna.org/viewcvs/relax?rev=13053&view=rev
Log:
Fix for the GUI Analysis.add() method for returning the index of the 
container.


Modified:
    branches/gui_testing/data/gui.py

Modified: branches/gui_testing/data/gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/data/gui.py?rev=13053&r1=13052&r2=13053&view=diff
==============================================================================
--- branches/gui_testing/data/gui.py (original)
+++ branches/gui_testing/data/gui.py Wed Jun 15 18:30:16 2011
@@ -103,7 +103,7 @@
         self[-1].analysis_type = type
 
         # Return the index of the container.
-        return len(self-1)
+        return len(self)-1
 
 
     def from_xml(self, analyses_node):




Related Messages


Powered by MHonArc, Updated Wed Jun 15 18:40:02 2011