[GRASS-SVN] r30752 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 27 06:55:01 EDT 2008


Author: martinl
Date: 2008-03-27 06:55:00 -0400 (Thu, 27 Mar 2008)
New Revision: 30752

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: no map layer available for querying (display mode) fixed


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-03-27 10:39:10 UTC (rev 30751)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py	2008-03-27 10:55:00 UTC (rev 30752)
@@ -2822,7 +2822,7 @@
         qdist = 10.0 * ((self.Map.region['e'] - self.Map.region['w']) / self.Map.width)
         east, north = self.MapWindow.Pixel2Cell((x, y))
 
-        if not self.tree.GetSelections():
+        if not self.tree.layer_selected:
             dlg = wx.MessageDialog(parent=self,
                                    message=_('No map layer selected for querying.'),
                                    caption=_('Message'),



More information about the grass-commit mailing list