diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-08 19:08:20 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-09 02:11:05 +0100 |
commit | 370fa77a418fe8903c48080db6e33a9cb8531869 (patch) | |
tree | aafa6ba4f36e403a565dab3cc45583da6545658c /dbaccess | |
parent | 5582b7f129a4db4204107f2a38ac809684aa6893 (diff) |
ORowSetCache::moveWindow fix variable inversion; fixes subsequentcheck
Diffstat (limited to 'dbaccess')
-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 77eae6efdf62..04d143630803 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -914,7 +914,7 @@ sal_Bool ORowSetCache::moveWindow() // 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); const sal_Int32 nOverlapSize = m_nEndPos - m_nStartPos; - const sal_Int32 nStartPosOffset = nNewStartPos - m_nStartPos; // by how much m_nStartPos moves + const sal_Int32 nStartPosOffset = m_nStartPos - nNewStartPos; // by how much m_nStartPos moves m_nStartPos = nNewStartPos; OSL_ENSURE( static_cast<ORowSetMatrix::size_type>(nOverlapSize) <= m_pMatrix->size(), "new window end is after end of cache matrix!" ); // the first position in m_pMatrix whos data we don't keep; |