diff --git a/src/GEOMImpl/GEOMImpl_PipeDriver.cxx b/src/GEOMImpl/GEOMImpl_PipeDriver.cxx index 4768d35f1..31f53f873 100644 --- a/src/GEOMImpl/GEOMImpl_PipeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PipeDriver.cxx @@ -2944,7 +2944,8 @@ Standard_Integer GEOMImpl_PipeDriver::Execute (TFunction_Logbook& log) const } } - TopoDS_Shape aShape; + TopoDS_Shape aShape; + const Standard_Boolean isGenerateGroups = aCI->GetGenerateGroups(); if (aType == PIPE_BASE_PATH) { Handle(GEOM_Function) aRefBase = aCI->GetBase(); @@ -3031,7 +3032,6 @@ Standard_Integer GEOMImpl_PipeDriver::Execute (TFunction_Logbook& log) const Handle(TColStd_HSequenceOfTransient) aLocObjs = aCIDS->GetLocations (); Standard_Boolean aWithContact = (aCIDS->GetWithContactMode()); Standard_Boolean aWithCorrect = (aCIDS->GetWithCorrectionMode()); - Standard_Boolean isGenerateGroups = aCIDS->GetGenerateGroups(); if (aCI) { delete aCI; @@ -3104,8 +3104,6 @@ Standard_Integer GEOMImpl_PipeDriver::Execute (TFunction_Logbook& log) const aShape = CreatePipeBiNormalAlongVector(aWirePath, aCI); } - const Standard_Boolean isGenerateGroups = aCI->GetGenerateGroups(); - if (aCI) { delete aCI; aCI = 0;