nPos is 1-based, so allowed to be equal to row count

Change-Id: Idb37cd23a58816bd16c725fda49a2f9875450e79
This commit is contained in:
Lionel Elie Mamane 2012-08-02 11:58:55 +02:00
parent 6ff70708b4
commit 5b85f6c1ef

View File

@ -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