]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020505: EDF 1074 GEOM: GetGlueFace anomaly
authordmv <dmv@opencascade.com>
Wed, 7 Oct 2009 09:40:34 +0000 (09:40 +0000)
committerdmv <dmv@opencascade.com>
Wed, 7 Oct 2009 09:40:34 +0000 (09:40 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 2bf73b05cfae57b52fa22cfefcdaa5c54cb29c91..99ace6a7b2dd8923cabf3b3fc51783a866da28be 100644 (file)
@@ -641,12 +641,13 @@ Handle(TColStd_HSequenceOfTransient) GEOMImpl_IShapesOperations::GetGlueFaces
   }
 
   //Make a Python command
-  if(anAsciiList.Length()>0)
+  if(anAsciiList.Length()>0) {
     anAsciiList.Trunc(anAsciiList.Length() - 1);
-  Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
-  GEOM::TPythonDump pd (aFunction, /*append=*/true);
-  pd << "[" << anAsciiList.ToCString();
-  pd << "] = geompy.GetGlueFaces(" << theShape << ", " << theTolerance << ")";
+    Handle(GEOM_Function) aFunction = theShape->GetLastFunction();
+    GEOM::TPythonDump pd (aFunction, /*append=*/true);
+    pd << "[" << anAsciiList.ToCString();
+    pd << "] = geompy.GetGlueFaces(" << theShape << ", " << theTolerance << ")";
+  }
 
   SetErrorCode(OK);