[GRASS-SVN] r35543 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 22 14:24:51 EST 2009


Author: martinl
Date: 2009-01-22 14:24:51 -0500 (Thu, 22 Jan 2009)
New Revision: 35543

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: fix UnboundLocalError
      (merge from trunk, r35541)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/goutput.py	2009-01-22 19:17:56 UTC (rev 35542)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/goutput.py	2009-01-22 19:24:51 UTC (rev 35543)
@@ -231,8 +231,8 @@
         for line in text.split('\n'):
             # fill space
             if len(line) < self.lineWidth:
-                diff = 80 - len(line) 
-            line += diff * ' '
+                diff = self.lineWidth - len(line) 
+                line += diff * ' '
             
             self.cmd_output.AddTextWrapped(line, wrap=wrap) # adds os.linesep
             



More information about the grass-commit mailing list