Fix test script to match new code

Fix nullptr bug revealed by bad test script!
This commit is contained in:
WandererFan
2016-10-31 11:06:15 -02:00
committed by Yorik van Havre
parent 83d657985c
commit 73aea7140d
2 changed files with 9 additions and 3 deletions
+3 -1
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);