ORowSetCache::moveWindow: yet another off-by-one error
This commit is contained in:
parent
5154135e36
commit
843c830953
1 changed files with 1 additions and 1 deletions
|
@ -909,7 +909,7 @@ sal_Bool ORowSetCache::moveWindow()
|
|||
// then we fill in the rows between new and old start pos.
|
||||
|
||||
sal_Bool bCheck;
|
||||
bCheck = m_pCacheSet->absolute(nNewStartPos);
|
||||
bCheck = m_pCacheSet->absolute(nNewStartPos + 1);
|
||||
|
||||
// m_nEndPos < nNewEndPos when window not filled (e.g. there are less rows in total than window size)
|
||||
m_nEndPos = std::min(nNewEndPos, m_nEndPos);
|
||||
|
|
Loading…
Reference in a new issue