ORowSetCache::moveWindow: yet another off-by-one error

This commit is contained in:
Lionel Elie Mamane 2012-02-09 13:03:24 +01:00
parent 5154135e36
commit 843c830953

View file

@ -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);