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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 1 19:57:08 PST 2014


Author: annakrat
Date: 2014-02-01 19:57:08 -0800 (Sat, 01 Feb 2014)
New Revision: 58839

Modified:
   grass/trunk/gui/wxpython/modules/histogram.py
Log:
wxGUI:d.histogram: open dialog if no map selected; use selected map even when it's not checked; still mysterious why it draws content of map window when it starts without map

Modified: grass/trunk/gui/wxpython/modules/histogram.py
===================================================================
--- grass/trunk/gui/wxpython/modules/histogram.py	2014-02-01 23:02:49 UTC (rev 58838)
+++ grass/trunk/gui/wxpython/modules/histogram.py	2014-02-02 03:57:08 UTC (rev 58839)
@@ -291,7 +291,7 @@
         # setting to None but honestly we do not handle no map case
         # TODO: when self.mapname is None content of map window is showed
         self.mapname = None
-        layers = self._giface.GetLayerList().GetSelectedLayers()
+        layers = self._giface.GetLayerList().GetSelectedLayers(checkedOnly=False)
         if len(layers) > 0:
             self.mapname = layers[0].maplayer.name
 
@@ -321,6 +321,7 @@
             self.SetHistLayer(self.mapname, None)
         else:
             self.OnErase(None)
+            wx.CallAfter(self.OnOptions, None)
 
     def InitDisplay(self):
         """!Initialize histogram display, set dimensions and region



More information about the grass-commit mailing list