From 466ab5840c5db8c16072ec03f292b67c61f6b2b8 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Mon, 11 Dec 2006 14:09:44 +0000 Subject: [PATCH] added missing initialization of currMetric --- vcg/complex/local_optimization.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vcg/complex/local_optimization.h b/vcg/complex/local_optimization.h index 82803e39..54831b6b 100644 --- a/vcg/complex/local_optimization.h +++ b/vcg/complex/local_optimization.h @@ -22,6 +22,9 @@ ****************************************************************************/ /**************************************************************************** $Log: not supported by cvs2svn $ + Revision 1.17 2006/06/09 07:28:43 m_di_benedetto + Corrected ClearHeap(): iterator "hi" not decrementable if it was the first of the container. + Revision 1.16 2005/11/10 15:38:46 cignoni Added casts to remove warnings @@ -316,6 +319,7 @@ void ClearHeap() m.InitVertexIMark(); LocalModificationType::Init(m,h); std::make_heap(h.begin(),h.end()); + if(!h.empty()) currMetric=h.back().pri; }