Przeglądaj źródła

wxGUI/vdigit: fix mouse actions

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48035 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 lat temu
rodzic
commit
a5c7eaa25c
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      gui/wxpython/gui_modules/mapdisp_vdigit.py

+ 4 - 3
gui/wxpython/gui_modules/mapdisp_vdigit.py

@@ -532,7 +532,7 @@ class VDigitWindow(BufferedWindow):
         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 @@ class VDigitWindow(BufferedWindow):
         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 @@ class VDigitWindow(BufferedWindow):
                                         "breakLine",
                                         "typeConv",
                                         "connectLine"):
-            self._onLeftUp(event)
+            self.OnLeftUpVarious(event)
         
         elif self.toolbar.GetAction() in ("splitLine",
                                           "addVertex",