소스 검색

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

Tomas Zigo 5 년 전
부모
커밋
01a365728c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      gui/wxpython/vdigit/wxdigit.py

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

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