From c2f8cdac1f3341cecc726e53907b5884ce931237 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 5 Nov 2007 23:46:43 +0000 Subject: [PATCH] removed past end access in an assert --- vcg/complex/trimesh/hole.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vcg/complex/trimesh/hole.h b/vcg/complex/trimesh/hole.h index 61a18635..79e3a21f 100644 --- a/vcg/complex/trimesh/hole.h +++ b/vcg/complex/trimesh/hole.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.34 2007/01/31 15:25:49 giec +Remove some usless code in Minimum Weight Triangulation. + Revision 1.33 2007/01/31 11:46:12 giec Bug fix @@ -503,7 +506,7 @@ template //Aggiungo le facce e aggiorno il puntatore alla faccia! FaceIterator f = tri::Allocator::AddFaces(m, h.size-2, app); assert(h.p.f >= &*m.face.begin()); - assert(h.p.f < &*m.face.end()); + assert(h.p.f <= &m.face.back()); assert(h.p.IsBorder());//test fondamentale altrimenti qualcosa s'e' rotto! std::vector< EAR > H; H.reserve(h.size);