[GRASS-SVN] r47895 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 27 06:03:47 EDT 2011
Author: martinl
Date: 2011-08-27 03:03:47 -0700 (Sat, 27 Aug 2011)
New Revision: 47895
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp_vdigit.py
Log:
wxGUI/vdigit: fix cat/attr dialog when no feature found
(merge r47893 from trunk)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp_vdigit.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp_vdigit.py 2011-08-27 09:57:05 UTC (rev 47894)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/mapdisp_vdigit.py 2011-08-27 10:03:47 UTC (rev 47895)
@@ -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