diff --git a/src/Mod/PartDesign/Gui/SketchWorkflow.cpp b/src/Mod/PartDesign/Gui/SketchWorkflow.cpp index d1ff066072..42d0e44080 100644 --- a/src/Mod/PartDesign/Gui/SketchWorkflow.cpp +++ b/src/Mod/PartDesign/Gui/SketchWorkflow.cpp @@ -504,7 +504,6 @@ public: SketchRequestSelection(Gui::Document* guidocument, PartDesign::Body* activeBody) : guidocument(guidocument) , activeBody(activeBody) - , planeFinder(guidocument->getDocument(), activeBody) { } @@ -619,6 +618,7 @@ private: void findAndSelectPlane() { App::Document* appdocument = guidocument->getDocument(); + PlaneFinder planeFinder {appdocument, activeBody}; planeFinder.findBasePlanes(); planeFinder.findDatumPlanes(); @@ -754,8 +754,6 @@ private: private: Gui::Document* guidocument; PartDesign::Body* activeBody; - - PlaneFinder planeFinder; }; }