From 1088385e70902401aad8cf59a6872d0b53034fea Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 9 Feb 2010 11:03:15 +0000 Subject: [PATCH] const SMDS_MeshElement* next() { + if ( !more() ) return 0; --- src/SMDS/SMDS_MeshNode.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2