diff --git a/src/Mod/Sketcher/App/SketchObject.cpp b/src/Mod/Sketcher/App/SketchObject.cpp index eb95bdfab4..f5bf6a558a 100644 --- a/src/Mod/Sketcher/App/SketchObject.cpp +++ b/src/Mod/Sketcher/App/SketchObject.cpp @@ -11072,7 +11072,7 @@ std::vector SketchObject::getElementTypes(bool all) const void SketchObject::setExpression(const App::ObjectIdentifier& path, std::shared_ptr expr) { - DocumentObject::setExpression(path, expr); + DocumentObject::setExpression(path, std::move(expr)); if (noRecomputes) { // if we do not have a recompute, the sketch must be solved to update the DoF of the solver,