Fixed bug in Refresh() ray iterator (Elems.size() > 0).

This commit is contained in:
Marco Di Benedetto 2005-10-17 08:59:26 +00:00
parent 1ad3bfb230
commit 7d23e4284b
1 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,9 @@ namespace vcg{
std::sort(Elems.begin(),Elems.end());
CurrentElem=Elems.end();
CurrentElem--;
if (Elems.size() > 0) {
CurrentElem--;
}
return((Elems.size()==0)||(Dist()>dist));
}