From e383ae8cb6f71070c7538e487ca5ec8c7c5a5b13 Mon Sep 17 00:00:00 2001 From: Matti Pellika <matti.pellikka@tut.fi> Date: Fri, 15 Jan 2010 14:08:57 +0000 Subject: [PATCH] --- Geo/Cell.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Geo/Cell.cpp b/Geo/Cell.cpp index 71b4415876..5cdaaba5cf 100755 --- a/Geo/Cell.cpp +++ b/Geo/Cell.cpp @@ -281,9 +281,13 @@ CombinedCell::~CombinedCell(){ } bool CombinedCell::hasVertex(int vertex) const { - std::vector<int>::const_iterator it = std::find(_vs.begin(), _vs.end(), vertex); + /*std::vector<int>::const_iterator it = std::find(_vs.begin(), _vs.end(), vertex); if (it != _vs.end()) return true; - else return false; + else return false;*/ + for(unsigned int i = 0; i < _v.size(); i++){ + if(_v.at(i)->getNum() == vertex) return true; + } + return false; } void CombinedCell::printCell() const { -- GitLab