[GRASS-SVN] r49516 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 4 14:25:58 EST 2011


Author: martinl
Date: 2011-12-04 11:25:58 -0800 (Sun, 04 Dec 2011)
New Revision: 49516

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI/vdigit: fix mirror bug when no vector map is marked for editing


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2011-12-04 17:02:05 UTC (rev 49515)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2011-12-04 19:25:58 UTC (rev 49516)
@@ -784,7 +784,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