]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1103
authorisn <isn@opencascade.com>
Tue, 24 Jan 2017 12:23:40 +0000 (15:23 +0300)
committerisn <isn@opencascade.com>
Tue, 24 Jan 2017 12:23:40 +0000 (15:23 +0300)
src/HYDROData/HYDROData_CalculationCase.cxx

index 7f87d0c6c0989b9c28a9d17c9350c850c1886a90..89fc176b1a9bd66b1ff4a19bebf60bf57f50ce6c 100644 (file)
@@ -1161,7 +1161,7 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var
     const TopoDS_Shape& aShape = aShToName.FindKey(i);
     if ( aShape.IsNull() )
       continue;
-    
+
     SH2M.Bind(aShape, TopTools_ListOfShape());
     TopTools_ListOfShape& LM = SH2M.ChangeFind(aShape);
     if ( aShape.ShapeType() == TopAbs_FACE || aShape.ShapeType() == TopAbs_SHELL )
@@ -1178,6 +1178,7 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var
         LM.Append(anExp.Current());
       }
       anExp.Init( aShape, TopAbs_FACE, TopAbs_SHELL );
+      for (; anExp.More(); anExp.Next() )
       {
         aSewing.Add( anExp.Current() );
         LM.Append(anExp.Current());
@@ -1212,8 +1213,7 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var
 
 #ifdef DEB_CALCULATION
   BRepTools::Write(aSewedShape ,"Sew.brep");
-#endif
-  // Publish the sewed shape
+#endif  // Publish the sewed shape
   QString aName = EXPORT_NAME;
   GEOM::GEOM_Object_ptr aMainShape = 
     HYDROData_GeomTool::ExplodeShapeInGEOMandPublish( theGeomEngine, theStudy, aSewedShape, aFacesToNameModif, aName, theGeomObjEntry );