From 5b85f6c1ef24b7189a78b64ebafd1679f090fd2b Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Thu, 2 Aug 2012 11:58:55 +0200 Subject: nPos is 1-based, so allowed to be equal to row count Change-Id: Idb37cd23a58816bd16c725fda49a2f9875450e79 --- dbaccess/source/core/api/RowSetCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 549b00d100b6..f72f4ffa7d4e 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -1042,7 +1042,7 @@ sal_Bool ORowSetCache::moveWindow() else if(!m_bRowCountFinal) m_nRowCount = std::max(nPos+1, m_nRowCount); //+1 because we successfully moved to row after nPos else - OSL_ENSURE(m_nRowCount > nPos, "Final m_nRowCount is smaller than row I moved to!"); + OSL_ENSURE(m_nRowCount >= nPos, "Final m_nRowCount is smaller than row I moved to!"); } else { // the end was reached before or at end() so we can set the start before or at nNewStartPos -- cgit