Skip to content

Commit

Permalink
Draft: solved bug in snapper - fixes #2563
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 29, 2016
1 parent 3d95239 commit 9c89981
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Draft/DraftSnap.py
Expand Up @@ -1061,7 +1061,10 @@ def cancel():
FreeCADGui.Snapper.off()
self.ui.offUi()
if callback:
callback(None)
if len(inspect.getargspec(callback).args) > 1:
callback(None,None)
else:
callback(None)

# adding callback functions
self.ui.pointUi(cancel=cancel,getcoords=getcoords,extra=extradlg,rel=bool(last))
Expand Down

0 comments on commit 9c89981

Please sign in to comment.