diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-09 13:03:24 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-09 13:10:12 +0100 |
commit | 843c8309536fec12d63dd45b6074ea5b461df322 (patch) | |
tree | 6ed200bbe38b772e185c043d002e967a22d40065 /dbaccess/source | |
parent | 5154135e36f6b4ab78925782672d70ab37664706 (diff) |
ORowSetCache::moveWindow: yet another off-by-one error
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index f2301f0f6375..be51b2a11d8e 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -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); |