From b9261bf9d540f1247b5c9731976e16f76cb7ca42 Mon Sep 17 00:00:00 2001 From: skv Date: Fri, 10 Apr 2015 17:00:08 +0300 Subject: [PATCH] 0023038: EDF GEOM Regression: SIGSEGV error with MakePipeWithDifferentSections --- src/GEOMImpl/GEOMImpl_PipeDriver.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.39.2