Skip to content

Commit

Permalink
Merge pull request #971 from rolanddenis/bug_label
Browse files Browse the repository at this point in the history
fix of Labels iterator
  • Loading branch information
JacquesOlivierLachaud committed Mar 10, 2015
2 parents 341c2c5 + de1b065 commit bbbff58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DGtal/base/Labels.ih
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ ConstEnumerator( const Word* address, SizeType firstWord )
else
{
myWord = 0;
myLabel = 0;
myLabel = -1;
}
}
//-----------------------------------------------------------------------------
Expand Down Expand Up @@ -132,7 +132,7 @@ operator++()
if ( myWordLabel == ( __DGTAL_LABELS_NBWORDS
* __DGTAL_WORD_NBDIGITS ) )
{
myLabel = 0;
myLabel = -1;
return *this;
}
myWord = *myWordAddress++;
Expand Down

0 comments on commit bbbff58

Please sign in to comment.