Explorar o código

g.gui.vdigit: fix SnapLine function return value (#506)

Tomas Zigo %!s(int64=5) %!d(string=hai) anos
pai
achega
01a365728c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      gui/wxpython/vdigit/wxdigit.py

+ 3 - 1
gui/wxpython/vdigit/wxdigit.py

@@ -1165,7 +1165,7 @@ class IVDigit:
     def SnapLine(self):
     def SnapLine(self):
         """Snap selected lines/boundaries
         """Snap selected lines/boundaries
 
 
-        :return: on success
+        :return: 0 on success
         :return: -1 on error
         :return: -1 on error
         """
         """
         if not self._checkMap():
         if not self._checkMap():
@@ -1181,6 +1181,8 @@ class IVDigit:
             self._addChangeset()
             self._addChangeset()
             self.toolbar.EnableUndo()
             self.toolbar.EnableUndo()
 
 
+        return 0
+
     def ConnectLine(self):
     def ConnectLine(self):
         """Connect selected lines/boundaries
         """Connect selected lines/boundaries