Ensure ProjGroup is created before child

This commit is contained in:
wandererfan
2019-03-06 15:23:34 -05:00
committed by wmayer
parent e29c610993
commit 86cc2641bc
5 changed files with 31 additions and 26 deletions

View File

@@ -268,6 +268,11 @@ void MDIViewPage::centerOnPage(void)
}
}
bool MDIViewPage::addView(const App::DocumentObject *obj)
{
return attachView(const_cast<App::DocumentObject*>(obj));
}
bool MDIViewPage::attachView(App::DocumentObject *obj)
{
auto typeId(obj->getTypeId());