diff --git a/source/worksheet/range_iterator.cpp b/source/worksheet/range_iterator.cpp index 9a7ca9c13..0b0d65860 100644 --- a/source/worksheet/range_iterator.cpp +++ b/source/worksheet/range_iterator.cpp @@ -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); }