A typo made the finding of the previous bookmark when the current row is located after the last bookmark to fail. Fix this by replacing a call to std::set<int>::rend() with a call to std::set<int>::rbegin().
A typo made the finding of the previous bookmark when the current row is located after the last bookmark to fail. Fix this by replacing a call to std::set<int>::rend() with a call to std::set<int>::rbegin().