From c4cc0446371796c5e30d5d4fb894f97c7783039d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 19 Jan 2009 18:02:05 +0000 Subject: [PATCH] setNum() should change _globalNum --- Geo/MVertex.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Geo/MVertex.h b/Geo/MVertex.h index 3f8ed42632..3873f65405 100644 --- a/Geo/MVertex.h +++ b/Geo/MVertex.h @@ -84,7 +84,11 @@ class MVertex{ // get/set the number inline int getNum() const { return _num; } - inline void setNum(int num) { _num = num; } + inline void setNum(int num) + { + _num = num; + _globalNum = std::max(_globalNum, _num); + } // get/set the index inline int getIndex() const { return _index; } -- GitLab