PD: Fixes issue #14598: FreeCAD crashes on Undo
This commit is contained in:
@@ -452,8 +452,10 @@ void ViewProviderBody::unifyVisualProperty(const App::Property* prop) {
|
||||
}
|
||||
|
||||
//copy over the properties data
|
||||
auto fprop = gdoc->getViewProvider(feature)->getPropertyByName(prop->getName());
|
||||
fprop->Paste(*prop);
|
||||
if (Gui::ViewProvider* vp = gdoc->getViewProvider(feature)) {
|
||||
auto fprop = vp->getPropertyByName(prop->getName());
|
||||
fprop->Paste(*prop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user