removed illegal *m.vert.end()

This commit is contained in:
granzuglia 2010-04-12 12:45:06 +00:00
parent 0f221f2d99
commit 9cd42be265
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ class Clustering
for(gi=GridCell.begin();gi!=GridCell.end();++gi)
{
VertexType *ptr=(*gi).second.Ptr();
if(ptr && ( ptr >= &*m.vert.begin() ) && ( ptr < &*m.vert.end() ) )
if(ptr && ( ptr >= &*m.vert.begin() ) && ( ptr <= &*(m.vert.end() - 1) ) )
ptr->SetS();
}
}