fix CIDs 154873, 154874, 153875, 153876, 154883, 154884, 154886

This commit is contained in:
wmayer
2016-12-18 13:27:34 +01:00
parent 5e0a972999
commit df8f7cfb7e
5 changed files with 21 additions and 12 deletions

View File

@@ -111,7 +111,7 @@ TaskProjGroup::TaskProjGroup(TechDraw::DrawProjGroup* featView, bool mode) :
m_page = multiView->findParentPage();
Gui::Document* activeGui = Gui::Application::Instance->getDocument(m_page->getDocument());
Gui::ViewProvider* vp = activeGui->getViewProvider(m_page);
ViewProviderPage* dvp = dynamic_cast<ViewProviderPage*>(vp);
ViewProviderPage* dvp = static_cast<ViewProviderPage*>(vp);
m_mdi = dvp->getMDIViewPage();
setUiPrimary();