Author: bugman Date: Tue Jun 14 16:21:37 2011 New Revision: 12995 URL: http://svn.gna.org/viewcvs/relax?rev=12995&view=rev Log: Fixed update_grid() for the swapped columns. Modified: 1.3/gui/components/spectrum.py Modified: 1.3/gui/components/spectrum.py URL: http://svn.gna.org/viewcvs/relax/1.3/gui/components/spectrum.py?rev=12995&r1=12994&r2=12995&view=diff ============================================================================== --- 1.3/gui/components/spectrum.py (original) +++ 1.3/gui/components/spectrum.py Tue Jun 14 16:21:37 2011 @@ -769,12 +769,12 @@ # Loop over the rows. for i in range(self.grid.GetNumberRows()): # The number of cycles. - ncyc = str(self.grid.GetCellValue(i, 1)) + ncyc = str(self.grid.GetCellValue(i, 2)) # No time or no cycles, so set the value to nothing. if time == '' or ncyc in ['', '0']: - self.grid.SetCellValue(i, 2, '') + self.grid.SetCellValue(i, 1, '') # Update the relaxation time. else: - self.grid.SetCellValue(i, 2, str(int(ncyc) * time)) + self.grid.SetCellValue(i, 1, str(int(ncyc) * time))