Fix test script to match new code
Fix nullptr bug revealed by bad test script!
This commit is contained in:
committed by
Yorik van Havre
parent
be8c59e561
commit
4119af2d64
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user