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 512b68c553
commit 74b667e634

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);