Author: bugman Date: Mon Jul 18 09:04:46 2011 New Revision: 13667 URL: http://svn.gna.org/viewcvs/relax?rev=13667&view=rev Log: Fix for the number of rows in the Spectra_list GUI element. Modified: branches/gui_testing/gui/components/spectrum.py Modified: branches/gui_testing/gui/components/spectrum.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spectrum.py?rev=13667&r1=13666&r2=13667&view=diff ============================================================================== --- branches/gui_testing/gui/components/spectrum.py (original) +++ branches/gui_testing/gui/components/spectrum.py Mon Jul 18 09:04:46 2011 @@ -181,7 +181,7 @@ # First freeze the grid, so that the GUI element doesn't update until the end. self.grid.Freeze() - # Delete all rows and columns. + # Delete the rows and columns (leaving one row and column). self.grid.DeleteRows(numRows=self.grid.GetNumberRows()-1) self.grid.DeleteCols(numCols=self.grid.GetNumberCols()-1) @@ -191,7 +191,7 @@ n = len(cdp.spectrum_ids) # Append the appropriate number of rows. - self.grid.AppendRows(numRows=n) + self.grid.AppendRows(numRows=n-1) # Set the IDs. for i in range(n):