dbaccess/source/core/api/RowSetCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 520b8118f4a2d54e4849929d94091f29a6434346 Author: Lionel Elie Mamane <[email protected]> Date: Mon Jan 23 10:19:55 2012 +0100 ORowSetCache::fillMatrix(): fix case m_nFetchsize > table size When lowering m_nStartPos, do not duplicate rows above its old value diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 87655f4..4cc1811 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -796,7 +796,7 @@ sal_Bool ORowSetCache::fillMatrix(sal_Int32& _nNewStartPos,sal_Int32 _nNewEndPos ++nPos; bCheck = m_pCacheSet->absolute(nPos); - for(;bCheck && aIter != aRealEnd;++aIter) + for(;bCheck && nPos <= m_nStartPos && aIter != aRealEnd; ++aIter) { if(!aIter->is()) *aIter = new ORowSetValueVector(m_xMetaData->getColumnCount()); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
