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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 11:47:31 EDT 2011


Author: martinl
Date: 2011-09-01 08:47:31 -0700 (Thu, 01 Sep 2011)
New Revision: 48037

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


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