Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
9c2c2f5cfa
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  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
         # deselect features in vdigit
         if self.GetToolbar('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)
             self.MapWindow.UpdateMap(render = True, renderVector = True)
         else:
         else:
             self.MapWindow.UpdateMap(render = True)
             self.MapWindow.UpdateMap(render = True)