diff --git a/src/Mod/Import/App/ImportOCAF.cpp b/src/Mod/Import/App/ImportOCAF.cpp index e7ff053d18..c24c62743c 100644 --- a/src/Mod/Import/App/ImportOCAF.cpp +++ b/src/Mod/Import/App/ImportOCAF.cpp @@ -129,7 +129,7 @@ void ImportOCAF::loadShapes() void ImportOCAF::setMerge(bool merge) { - this->merge=merge; + this->merge=merge; } void ImportOCAF::loadShapes(const TDF_Label& label, const TopLoc_Location& loc, diff --git a/src/Mod/Import/Gui/AppImportGuiPy.cpp b/src/Mod/Import/Gui/AppImportGuiPy.cpp index ab16a72b9b..b2f1e894b0 100644 --- a/src/Mod/Import/Gui/AppImportGuiPy.cpp +++ b/src/Mod/Import/Gui/AppImportGuiPy.cpp @@ -342,9 +342,9 @@ private: Handle(XCAFApp_Application) hApp = XCAFApp_Application::GetApplication(); Handle(TDocStd_Document) hDoc; - bool optionReadShapeCompoundMode_status; + bool optionReadShapeCompoundMode_status; hApp->NewDocument(TCollection_ExtendedString("MDTV-CAF"), hDoc); - ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP"); + ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP"); optionReadShapeCompoundMode_status = hGrp->GetBool("ReadShapeCompoundMode",false); if (file.hasExtension("stp") || file.hasExtension("step")) { @@ -419,8 +419,8 @@ private: // purge the document before recomputing it to clear it and settle it in the proper // way. This is drastically improving STEP rendering time on complex STEP files. pcDoc->recompute(); - if (file.hasExtension("stp") || file.hasExtension("step")) - ocaf.setMerge(optionReadShapeCompoundMode_status); + if (file.hasExtension("stp") || file.hasExtension("step")) + ocaf.setMerge(optionReadShapeCompoundMode_status); ocaf.loadShapes(); pcDoc->purgeTouched(); pcDoc->recompute(); @@ -523,10 +523,10 @@ private: ParameterGrp::handle hGrp_stp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Import/hSTEP"); optionScheme_214 = hGrp_stp->GetBool("Scheme_214",true); optionScheme_203 = hGrp_stp->GetBool("Scheme_203",false); - if ( optionScheme_214 ) - Interface_Static::SetCVal("write.step.schema", "AP214CD"); - if ( optionScheme_203 ) - Interface_Static::SetCVal("write.step.schema", "AP203"); + if (optionScheme_214) + Interface_Static::SetCVal("write.step.schema", "AP214CD"); + if (optionScheme_203) + Interface_Static::SetCVal("write.step.schema", "AP203"); STEPCAFControl_Writer writer; writer.Transfer(hDoc, STEPControl_AsIs);