diff options
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 940618a5dd43..05a88d05ac16 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -1087,11 +1087,10 @@ sal_Bool ORowSetCache::moveWindow() for(; !aIter->is() && bCheck;++aIter, ++nPos) { OSL_ENSURE(aIter != m_pMatrix->end(),"Invalid iterator"); - if ( bCheck ) // resultset stands on right position - { - *aIter = new ORowSetValueVector(m_xMetaData->getColumnCount()); - m_pCacheSet->fillValueRow(*aIter, nPos); - } + + *aIter = new ORowSetValueVector(m_xMetaData->getColumnCount()); + m_pCacheSet->fillValueRow(*aIter, nPos); + bCheck = m_pCacheSet->next(); } } |