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

src/SMESH/SMESH_subMesh.cxx

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