Skip to content

Commit

Permalink
Merge pull request tfussell#651 from tfussell/fix-range-iterator-decr…
Browse files Browse the repository at this point in the history
…ement

Fix bug in decrement method of range_iterator for column-major order
  • Loading branch information
tfussell authored Aug 22, 2022
2 parents c689943 + d45e831 commit 5620e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/worksheet/range_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ range_iterator &range_iterator::operator--()

if (skip_null_)
{
while ((**this).empty() && cursor_.row() > bounds_.top_left().column())
while ((**this).empty() && cursor_.column() > bounds_.top_left().column())
{
cursor_.column_index(cursor_.column_index() - 1);
}
Expand Down

0 comments on commit 5620e5b

Please sign in to comment.