[GRASS-SVN] r47894 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 27 05:57:05 EDT 2011
Author: martinl
Date: 2011-08-27 02:57:05 -0700 (Sat, 27 Aug 2011)
New Revision: 47894
Modified:
grass/branches/develbranch_6/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/develbranch_6/gui/wxpython/gui_modules/mapdisp_vdigit.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_vdigit.py 2011-08-27 09:46:34 UTC (rev 47893)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_vdigit.py 2011-08-27 09:57:05 UTC (rev 47894)
@@ -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