浏览代码

wxGUI/vdigit: fix mirror bug when no vector map is marked for editing
(merge https://trac.osgeo.org/grass/changeset/49516 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49518 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 13 年之前
父节点
当前提交
9c2c2f5cfa
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/mapdisp/frame.py

+ 2 - 1
gui/wxpython/mapdisp/frame.py

@@ -454,7 +454,8 @@ class MapFrame(MapFrameBase):
         
         # deselect features in vdigit
         if self.GetToolbar('vdigit'):
-            self.MapWindow.digit.GetDisplay().SetSelected([])
+            if self.MapWindow.digit:
+                self.MapWindow.digit.GetDisplay().SetSelected([])
             self.MapWindow.UpdateMap(render = True, renderVector = True)
         else:
             self.MapWindow.UpdateMap(render = True)