Salome HOME
0023038: EDF GEOM Regression: SIGSEGV error with MakePipeWithDifferentSections
authorskv <skv@opencascade.com>
Fri, 10 Apr 2015 14:00:08 +0000 (17:00 +0300)
committerskv <skv@opencascade.com>
Fri, 10 Apr 2015 14:00:08 +0000 (17:00 +0300)
src/GEOMImpl/GEOMImpl_PipeDriver.cxx

index 4768d35f11720613e68e82d826d7692f15b35db7..31f53f8733646d575ccde04cd27e3d70967bc88f 100644 (file)
@@ -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;