Fix bug in SketchObject::execute() that throws exception instead of returning an error

This commit is contained in:
jrheinlaender
2013-09-16 20:21:15 +02:00
committed by Stefan Tröger
parent a4ad9a6a55
commit 22e3aaa2d6

View File

@@ -130,7 +130,7 @@ App::DocumentObjectExecReturn *SketchObject::execute(void)
try {
App::DocumentObject* support = Support.getValue();
if (support == NULL)
throw Base::Exception("Sketch support has been deleted");
return new App::DocumentObjectExecReturn("Sketch support has been deleted");
this->positionBySupport();
}