summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2012-02-08 19:08:20 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2012-02-09 02:11:05 +0100
commit370fa77a418fe8903c48080db6e33a9cb8531869 (patch)
treeaafa6ba4f36e403a565dab3cc45583da6545658c /dbaccess
parentadd testtools to dmake_modules (diff)
downloadcore-370fa77a418fe8903c48080db6e33a9cb8531869.tar.gz
core-370fa77a418fe8903c48080db6e33a9cb8531869.zip
ORowSetCache::moveWindow fix variable inversion; fixes subsequentcheck
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/RowSetCache.cxx2
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;