]> 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:42:28 +0000 (09:42 +0000)
committerdmv <dmv@opencascade.com>
Wed, 7 Oct 2009 09:42:28 +0000 (09:42 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 37d06c4ca2043d02fa50224e8401847f2b6f8525..cb173b0c40cc46bb2984dbae25224f6764764b41 100644 (file)
@@ -699,12 +699,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);