Sketcher: fix free-standing sketches

See forum thread, Sketch support == NULL
http://forum.freecadweb.org/viewtopic.php?f=20&t=10942
This commit is contained in:
DeepSOIC
2015-05-16 17:26:44 +03:00
committed by Stefan Tröger
parent da545f3978
commit 1226fec82c
2 changed files with 3 additions and 5 deletions

View File

@@ -129,10 +129,8 @@ App::DocumentObjectExecReturn *SketchObject::execute(void)
{
try {
App::DocumentObject* support = Support.getValue();
if (support == NULL)
return new App::DocumentObjectExecReturn("Sketch support has been deleted");
this->positionBySupport();
if (support)
this->positionBySupport();
}
catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());