Jelajahi Sumber

wxGUI: fix UnboundLocalError

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35541 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 tahun lalu
induk
melakukan
1ce7e6d053
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      gui/wxpython/gui_modules/goutput.py

+ 2 - 2
gui/wxpython/gui_modules/goutput.py

@@ -231,8 +231,8 @@ class GMConsole(wx.Panel):
         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