Draft: solved bug in snapper - fixes #2563

This commit is contained in:
Yorik van Havre 2016-05-28 22:35:14 -03:00
parent 3d95239bae
commit 9c89981373

View File

@ -1061,7 +1061,10 @@ class Snapper:
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))