[GRASS-SVN] r47893 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 27 05:46:34 EDT 2011
Author: martinl
Date: 2011-08-27 02:46:34 -0700 (Sat, 27 Aug 2011)
New Revision: 47893
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py
Log:
wxGUI/vdigit: fix cat/attr dialog when no feature found
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py 2011-08-27 08:46:48 UTC (rev 47892)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py 2011-08-27 09:46:34 UTC (rev 47893)
@@ -315,7 +315,14 @@
# select feature by point
cats = {}
- if self.digit.GetDisplay().SelectLineByPoint(coords) is None:
+ self.digit.GetDisplay().SelectLineByPoint(coords)
+
+ if not self.digit.GetDisplay().GetSelected():
+ for key in ('attributes', 'category'):
+ if self.parent.dialogs[key] and \
+ self.parent.dialogs[key].IsShown():
+ self.parent.dialogs[key].Hide()
+ self.UpdateMap(render = False, renderVector = True)
return
if UserSettings.Get(group = 'vdigit', key = 'checkForDupl',
More information about the grass-commit
mailing list