Ver código fonte

wxGUI/mapcalc: fix adding map

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60996 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 anos atrás
pai
commit
32ece5876e
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      gui/wxpython/modules/mcalc_builder.py

+ 4 - 4
gui/wxpython/modules/mcalc_builder.py

@@ -445,13 +445,13 @@ class MapCalcFrame(wx.Frame):
         the raster map name must be then quoted.
         """
         win = self.FindWindowById(event.GetId())
-        item = event.GetString().strip()
+        item = win.GetValue().strip()
         if any((char in item) for char in self.charactersToQuote):
             item = '"' + item + '"'
         self._addSomething(item)
-        
-        win.ChangeValue('') # reset
-        
+
+        win.ChangeValue('')  # reset
+
     def OnUpdateStatusBar(self, event):
         """Update statusbar text"""
         command = self._getCommand()