Skip to content

Commit

Permalink
PD: Fixes issue FreeCAD#14598: FreeCAD crashes on Undo
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jun 14, 2024
1 parent 30f7f26 commit 0106ba1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Mod/PartDesign/Gui/ViewProviderBody.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,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);
}
}
}

Expand Down

0 comments on commit 0106ba1

Please sign in to comment.