PartDesign: adding some asserts to workbench

This commit is contained in:
blobfish 2015-04-30 17:13:46 -04:00 committed by Stefan Tröger
parent 7248888e05
commit 56af3ca44d

View File

@ -370,7 +370,9 @@ void Workbench::_switchToDocument(const App::Document* doc)
else
{
activeBody = Gui::Application::Instance->activeView()->getActiveObject<PartDesign::Body*>("Body");
assert(activeBody);
activePart = Gui::Application::Instance->activeView()->getActiveObject<App::Part*>("Part");
assert(activePart);
// document change not implemented yet
assert(activePart->getDocument() == doc);