diff --git a/src/Mod/Fem/App/FemConstraint.cpp b/src/Mod/Fem/App/FemConstraint.cpp index 6c4909f36..298f86488 100644 --- a/src/Mod/Fem/App/FemConstraint.cpp +++ b/src/Mod/Fem/App/FemConstraint.cpp @@ -298,7 +298,7 @@ const bool Constraint::getCylinder(double &radius, double &height, Base::Vector3 return false; App::DocumentObject* obj = Objects[0]; Part::Feature* feat = static_cast(obj); - Part::TopoShape toposhape = feat->Shape.getShape(); + const Part::TopoShape& toposhape = feat->Shape.getShape(); if (toposhape.isNull()) return false; TopoDS_Shape sh = toposhape.getSubShape(SubElements[0].c_str());