PD: Fix crash in ViewProviderBody::unifyVisualProperty
Make sure that the view provider of a body feature provides the requested property
This commit is contained in:
@@ -453,8 +453,9 @@ void ViewProviderBody::unifyVisualProperty(const App::Property* prop) {
|
||||
|
||||
//copy over the properties data
|
||||
if (Gui::ViewProvider* vp = gdoc->getViewProvider(feature)) {
|
||||
auto fprop = vp->getPropertyByName(prop->getName());
|
||||
fprop->Paste(*prop);
|
||||
if (auto fprop = vp->getPropertyByName(prop->getName())) {
|
||||
fprop->Paste(*prop);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user