Salome HOME
PAL20461 4.x Wrong mesh after creation of 3D mesh from 2D skin.
authoreap <eap@opencascade.com>
Fri, 3 Oct 2008 08:39:10 +0000 (08:39 +0000)
committereap <eap@opencascade.com>
Fri, 3 Oct 2008 08:39:10 +0000 (08:39 +0000)
     fix getDependsOnIterator() if submesh map is empty

src/SMESH/SMESH_subMesh.cxx

index 704703404d0e8003b4fa4a9d3645f75bcba37dc8..ed6ac1a78163bc49039ee20496a661893996f57d 100644 (file)
@@ -2077,7 +2077,7 @@ namespace {
               SMESH_subMesh*                 prepend,
               SMESH_subMesh*                 append): myIt(subIt),myAppend(append)
     {
-      myCur = prepend ? prepend : myIt->more() ? myIt->next() : 0;
+      myCur = prepend ? prepend : myIt->more() ? myIt->next() : append;
     }
     /// Return true if and only if there are other object in this iterator
     virtual bool more()