[Libreoffice-commits] .: Branch 'libreoffice-3-6' - dbaccess/source

Noel Power noelp at kemper.freedesktop.org
Thu Aug 2 04:08:51 PDT 2012


 dbaccess/source/core/api/RowSetCache.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c7b0f9fa41789b3b514b81bae32cf5c39aa6fa34
Author: Lionel Elie Mamane <lionel at 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


More information about the Libreoffice-commits mailing list