Fix, IntervalTree::overlap_iterator was progressing one step too far.

This commit is contained in:
Jean-Paul Chaput 2023-03-18 18:11:03 +01:00
parent 090c13663e
commit 1f4b9450e5
1 changed files with 2 additions and 1 deletions

View File

@ -186,8 +186,9 @@ namespace Hurricane {
template< typename Data >
typename IntervalTree<Data>::overlap_iterator& IntervalTree<Data>::overlap_iterator::operator++ ()
{
while (this->isValid()) {
while ( true ) {
Super::iterator::operator++();
if (not this->isValid()) break;
cdebug_log(0,0) << "IntervalTree::overlap_iterator::operator++() "
<< ::getString(this->getNode()) << std::endl;