[GRASS-SVN] r49518 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 4 14:31:43 EST 2011


Author: martinl
Date: 2011-12-04 11:31:43 -0800 (Sun, 04 Dec 2011)
New Revision: 49518

Modified:
   grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxGUI/vdigit: fix mirror bug when no vector map is marked for editing
             (merge r49516 from devbr6)


Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2011-12-04 19:28:35 UTC (rev 49517)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2011-12-04 19:31:43 UTC (rev 49518)
@@ -454,7 +454,8 @@
         
         # 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)



More information about the grass-commit mailing list