Skip to content

Commit

Permalink
g.gui.vdigit: fix SnapLine function return value (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and petrasovaa committed Apr 17, 2020
1 parent b621733 commit 01a3657
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/wxpython/vdigit/wxdigit.py
Expand Up @@ -1165,7 +1165,7 @@ def BreakLine(self):
def SnapLine(self):
"""Snap selected lines/boundaries
:return: on success
:return: 0 on success
:return: -1 on error
"""
if not self._checkMap():
Expand All @@ -1181,6 +1181,8 @@ def SnapLine(self):
self._addChangeset()
self.toolbar.EnableUndo()

return 0

def ConnectLine(self):
"""Connect selected lines/boundaries
Expand Down

0 comments on commit 01a3657

Please sign in to comment.