[GRASS-SVN] r60996 - grass/trunk/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 26 14:08:25 PDT 2014


Author: annakrat
Date: 2014-06-26 14:08:25 -0700 (Thu, 26 Jun 2014)
New Revision: 60996

Modified:
   grass/trunk/gui/wxpython/modules/mcalc_builder.py
Log:
wxGUI/mapcalc: fix adding map

Modified: grass/trunk/gui/wxpython/modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/modules/mcalc_builder.py	2014-06-26 20:44:08 UTC (rev 60995)
+++ grass/trunk/gui/wxpython/modules/mcalc_builder.py	2014-06-26 21:08:25 UTC (rev 60996)
@@ -445,13 +445,13 @@
         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()



More information about the grass-commit mailing list