[GRASS-SVN] r36423 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 19 11:39:22 EDT 2009


Author: martinl
Date: 2009-03-19 11:39:22 -0400 (Thu, 19 Mar 2009)
New Revision: 36423

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: cancel action when tool changed (trac #286)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py	2009-03-19 12:13:27 UTC (rev 36422)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py	2009-03-19 15:39:22 UTC (rev 36423)
@@ -606,6 +606,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