[GRASS-SVN] r36424 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 19 11:41:37 EDT 2009
Author: martinl
Date: 2009-03-19 11:41:37 -0400 (Thu, 19 Mar 2009)
New Revision: 36424
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/vdigit: cancel action when tool changed (trac #286)
(merge from relbr64, r36423)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py 2009-03-19 15:39:22 UTC (rev 36423)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py 2009-03-19 15:41:37 UTC (rev 36424)
@@ -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