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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 21 12:31:59 PDT 2012


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

New commits:
commit f2202ff952aefec7da78c45262d5004f31815270
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Tue Aug 21 14:43:52 2012 +0200

    m_nEndPos==m_nStartPos is OK: empty window (for example, empty table)
    
    Change-Id: I5525eb750dfbed282fea272de4a736e6c70e51a9
    Reviewed-on: https://gerrit.libreoffice.org/442
    Reviewed-by: Andras Timar <atimar at suse.com>
    Tested-by: Andras Timar <atimar at suse.com>

diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx
index fd2fe1f..3426ffd 100644
--- a/dbaccess/source/core/api/RowSetCache.cxx
+++ b/dbaccess/source/core/api/RowSetCache.cxx
@@ -857,7 +857,7 @@ sal_Bool ORowSetCache::fillMatrix(sal_Int32& _nNewStartPos, sal_Int32 &_nNewEndP
 sal_Bool ORowSetCache::moveWindow()
 {
     OSL_ENSURE(m_nStartPos >= 0,"ORowSetCache::moveWindow: m_nStartPos is less than 0!");
-    OSL_ENSURE(m_nEndPos > m_nStartPos,"ORowSetCache::moveWindow: m_nStartPos not smaller than m_nEndPos");
+    OSL_ENSURE(m_nEndPos >= m_nStartPos,"ORowSetCache::moveWindow: m_nStartPos not smaller than m_nEndPos");
     OSL_ENSURE(m_nEndPos-m_nStartPos <= m_nFetchSize,"ORowSetCache::moveWindow: m_nStartPos and m_nEndPos too far apart");
 
     if ( m_nStartPos < m_nPosition && m_nPosition <= m_nEndPos )


More information about the Libreoffice-commits mailing list