Fix test script to match new code

Fix nullptr bug revealed by bad test script!
This commit is contained in:
WandererFan
2016-10-28 19:33:45 -04:00
committed by Yorik van Havre
parent be8c59e561
commit 4119af2d64
2 changed files with 9 additions and 3 deletions

View File

@@ -150,7 +150,9 @@ void DrawViewSection::onChanged(const App::Property* prop)
}
if (prop == &SectionOrigin) {
App::DocumentObject* base = BaseView.getValue();
base->touch();
if (base != nullptr) {
base->touch();
}
}
}
DrawView::onChanged(prop);