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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 11:38:44 EDT 2011


Author: martinl
Date: 2011-09-01 08:38:44 -0700 (Thu, 01 Sep 2011)
New Revision: 48035

Modified:
   grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py
Log:
wxGUI/vdigit: fix mouse actions


Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py	2011-09-01 15:12:34 UTC (rev 48034)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_vdigit.py	2011-09-01 15:38:44 UTC (rev 48035)
@@ -532,7 +532,7 @@
         elif self.toolbar.GetAction() == "zbulkLine":
             self.OnLeftDownBulkLine(event)
         
-    def _onLeftUp(self, event):
+    def OnLeftUpVarious(self, event):
         """!Left mouse button released - vector digitizer various
         actions
         """
@@ -762,7 +762,8 @@
         if len(self.digit.GetDisplay().GetSelected()) > 0:
             self.UpdateMap(render = False)
         
-    def OnLeftUp(self, event):
+    def _onLeftUp(self, event):
+        """!Left mouse button released"""
         if hasattr(self, "moveInfo"):
             if len(self.digit.GetDisplay().GetSelected()) == 0:
                 self.moveInfo['begin'] = self.Pixel2Cell(self.mouse['begin']) # left down
@@ -783,7 +784,7 @@
                                         "breakLine",
                                         "typeConv",
                                         "connectLine"):
-            self._onLeftUp(event)
+            self.OnLeftUpVarious(event)
         
         elif self.toolbar.GetAction() in ("splitLine",
                                           "addVertex",



More information about the grass-commit mailing list