Merge pull request #651 from tfussell/fix-range-iterator-decrement

Fix bug in decrement method of range_iterator for column-major order
This commit is contained in:
Thomas Fussell 2022-08-21 20:39:49 -05:00 committed by GitHub
commit 5620e5be7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ range_iterator &range_iterator::operator--()
if (skip_null_) 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); cursor_.column_index(cursor_.column_index() - 1);
} }