[GRASS-SVN] r36425 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 19 11:43:45 EDT 2009


Author: martinl
Date: 2009-03-19 11:43:45 -0400 (Thu, 19 Mar 2009)
New Revision: 36425

Modified:
   grass/trunk/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: cancel action when tool changed (trac #286)
             (merge from relbr64, r36423)


Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py	2009-03-19 15:41:37 UTC (rev 36424)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py	2009-03-19 15:43:45 UTC (rev 36425)
@@ -607,6 +607,10 @@
         # clear tmp canvas
         if self.action['id'] != id:
             self.parent.MapWindow.ClearLines(pdc=self.parent.MapWindow.pdcTmp)
+            if self.parent.digit and \
+                    len(self.parent.digit.driver.GetSelected()) > 0:
+                # cancel action
+                self.parent.MapWindow.OnMiddleDown(None)
         
     def OnAddPoint(self, event):
         """Add point to the vector map Laier"""



More information about the grass-commit mailing list