[GRASS-SVN] r63314 - grass/trunk/gui/wxpython/rdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 1 07:53:14 PST 2014


Author: annakrat
Date: 2014-12-01 07:53:14 -0800 (Mon, 01 Dec 2014)
New Revision: 63314

Modified:
   grass/trunk/gui/wxpython/rdigit/controller.py
   grass/trunk/gui/wxpython/rdigit/toolbars.py
Log:
wxGUI/rdigit: small fixes for Windows

Modified: grass/trunk/gui/wxpython/rdigit/controller.py
===================================================================
--- grass/trunk/gui/wxpython/rdigit/controller.py	2014-12-01 15:21:35 UTC (rev 63313)
+++ grass/trunk/gui/wxpython/rdigit/controller.py	2014-12-01 15:53:14 UTC (rev 63314)
@@ -352,6 +352,7 @@
         """After selecting new raster, shows dialog to choose name,
         background map and type of the new map."""
         dlg = NewRasterDialog(parent=self._mapWindow)
+        dlg.CenterOnParent()
         if dlg.ShowModal() == wx.ID_OK:
             try:
                 self._createNewMap(mapName=dlg.GetMapName(),

Modified: grass/trunk/gui/wxpython/rdigit/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/rdigit/toolbars.py	2014-12-01 15:21:35 UTC (rev 63313)
+++ grass/trunk/gui/wxpython/rdigit/toolbars.py	2014-12-01 15:53:14 UTC (rev 63314)
@@ -143,13 +143,15 @@
         self._mapSelectionCombo.SetSelection(idx)
 
     def UpdateCellValues(self, values=None):
+        orig = self._valueCombo.GetValue()
         if not values:
-            values = [self._valueCombo.GetValue()]
+            values = [orig]
         for value in values:
             self._cellValues.add(str(value))
 
         valList = sorted(list(self._cellValues), key=float)
         self._valueCombo.SetItems(valList)
+        self._valueCombo.SetStringSelection(orig)
 
     def _cellValueChanged(self):
         value = self._valueCombo.GetValue()



More information about the grass-commit mailing list