dbaccess/source/core/api/RowSetCache.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c7b0f9fa41789b3b514b81bae32cf5c39aa6fa34 Author: Lionel Elie Mamane <lio...@mamane.lu> Date: Thu Aug 2 11:58:55 2012 +0200 nPos is 1-based, so allowed to be equal to row count Change-Id: Idb37cd23a58816bd16c725fda49a2f9875450e79 diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 05a88d0..fd2fe1f 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -1051,7 +1051,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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits