View does not appear on Redo

Crash in Page on Redo View
This commit is contained in:
WandererFan
2016-07-04 20:15:02 -04:00
committed by wmayer
parent fb397e0f8b
commit 449cbbd5bd
6 changed files with 29 additions and 4 deletions

View File

@@ -337,5 +337,10 @@ void ViewProviderPage::finishRestoring()
TechDraw::DrawPage* ViewProviderPage::getPageObject() const
{
//during redo, pcObject can become invalid, but non-zero??
if (!pcObject) {
Base::Console().Message("TROUBLE - VPP::getPageObject - no Page Object!\n");
return nullptr;
}
return dynamic_cast<TechDraw::DrawPage*>(pcObject);
}