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

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


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

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_vdigit.py
Log:
wxGUI/vdigit: fix mouse actions
	      (merge r48035 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_vdigit.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_vdigit.py	2011-09-01 15:38:44 UTC (rev 48035)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_vdigit.py	2011-09-01 15:44:27 UTC (rev 48036)
@@ -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