浏览代码

wxGUI/vdigit: fix cat/attr dialog when no feature found

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47893 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 年之前
父节点
当前提交
06a08f8def
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      gui/wxpython/gui_modules/mapdisp_vdigit.py

+ 8 - 1
gui/wxpython/gui_modules/mapdisp_vdigit.py

@@ -315,7 +315,14 @@ class VDigitWindow(BufferedWindow):
         
         # 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',