[GRASS-SVN] r35541 - grass/trunk/gui/wxpython/gui_modules

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


Author: martinl
Date: 2009-01-22 14:14:52 -0500 (Thu, 22 Jan 2009)
New Revision: 35541

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: fix UnboundLocalError


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2009-01-22 19:06:49 UTC (rev 35540)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2009-01-22 19:14:52 UTC (rev 35541)
@@ -231,8 +231,8 @@
         for line in text.splitlines():
             # 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