diff --git a/src/Mod/Path/Gui/Command.cpp b/src/Mod/Path/Gui/Command.cpp index 97b7894e1e..b6f2af7aff 100644 --- a/src/Mod/Path/Gui/Command.cpp +++ b/src/Mod/Path/Gui/Command.cpp @@ -23,10 +23,9 @@ #include "PreCompiled.h" #ifndef _PreComp_ +# include #endif -#include - #include #include #include @@ -92,9 +91,9 @@ void CmdPathArea::activated(int iMsg) std::string sub_fname = getUniqueObjectName(subname.str().c_str()); std::ostringstream cmd; - cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname << - "').Shape = PathCommands.findShape(FreeCAD.activeDocument()." << - pcObj->getNameInDocument() << ".Shape,'" << name << "'"; + cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname << + "').Shape = PathCommands.findShape(FreeCAD.activeDocument()." << + pcObj->getNameInDocument() << ".Shape,'" << name << "'"; if(!name.compare(0,4,"Edge")) cmd << ",'Wires'"; cmd << ')'; @@ -150,7 +149,7 @@ void CmdPathAreaWorkplane::activated(int iMsg) std::string areaName; std::string planeSubname; std::string planeName; - + for(Gui::SelectionObject &selObj : getSelection().getSelectionEx(NULL, Part::Feature::getClassTypeId())) { @@ -311,8 +310,8 @@ void CmdPathShape::activated(int iMsg) std::string sub_fname = getUniqueObjectName(subname.str().c_str()); std::ostringstream cmd; - cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname << - "').Shape = PathCommands.findShape(FreeCAD.activeDocument()." << + cmd << "FreeCAD.activeDocument().addObject('Part::Feature','" << sub_fname << + "').Shape = PathCommands.findShape(FreeCAD.activeDocument()." << pcObj->getNameInDocument() << ".Shape,'" << name << "'"; if(!name.compare(0,4,"Edge")) cmd << ",'Wires'"; diff --git a/src/Mod/Path/Gui/PreCompiled.h b/src/Mod/Path/Gui/PreCompiled.h index 5d5d334231..917f1b025e 100644 --- a/src/Mod/Path/Gui/PreCompiled.h +++ b/src/Mod/Path/Gui/PreCompiled.h @@ -45,8 +45,8 @@ #endif #ifdef _PreComp_ - -// Python + +// Python #include // standard @@ -69,12 +69,14 @@ # include #endif +// OCC +#include // Qt Toolkit #ifndef __Qt4All__ # include #endif - + #endif //_PreComp_ #endif // PATHGUI_PRECOMPILED_H