Fix bug in PartDesignGui Workbench that may cause a crash

This commit is contained in:
jrheinlaender
2013-10-03 20:43:01 +02:00
committed by Stefan Tröger
parent b017927af9
commit 14b4a99e33

View File

@@ -277,9 +277,11 @@ void switchToDocument(const App::Document* doc)
sketch->getNameInDocument(), Datum.c_str(), side.c_str());
Gui::Selection().clearSelection();
Gui::Selection().addSelection(doc->getName(), oldTip->getNameInDocument());
Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')");
Gui::Selection().clearSelection();
if (oldTip != NULL) {
Gui::Selection().addSelection(doc->getName(), oldTip->getNameInDocument());
Gui::Command::doCommand(Gui::Command::Gui,"FreeCADGui.runCommand('PartDesign_MoveTip')");
Gui::Selection().clearSelection();
}
}
}