From: eap Date: Tue, 9 Feb 2010 11:03:15 +0000 (+0000) Subject: const SMDS_MeshElement* next() X-Git-Tag: V5_1_4a1~103 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1088385e70902401aad8cf59a6872d0b53034fea;p=modules%2Fsmesh.git const SMDS_MeshElement* next() { + if ( !more() ) return 0; --- diff --git a/src/SMDS/SMDS_MeshNode.cxx b/src/SMDS/SMDS_MeshNode.cxx index ceaf3986f..1a589b039 100644 --- a/src/SMDS/SMDS_MeshNode.cxx +++ b/src/SMDS/SMDS_MeshNode.cxx @@ -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;