]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
const SMDS_MeshElement* next()
authoreap <eap@opencascade.com>
Tue, 9 Feb 2010 11:03:15 +0000 (11:03 +0000)
committereap <eap@opencascade.com>
Tue, 9 Feb 2010 11:03:15 +0000 (11:03 +0000)
   {
+    if ( !more() ) return 0;

src/SMDS/SMDS_MeshNode.cxx

index ceaf3986fe6186bead4fe53bf9e4f765cf1db0a5..1a589b0395a9511ed42f9d479da2502062c6e572 100644 (file)
@@ -117,6 +117,7 @@ class SMDS_MeshNode_MyInvIterator:public SMDS_ElemIterator
 
   const SMDS_MeshElement* next()
   {
+    if ( !more() ) return 0;
     const SMDS_MeshElement* current=myIterator.Value();
     myIterator.Next();
     return current;