nPos is 1-based, so allowed to be equal to row count
Change-Id: Idb37cd23a58816bd16c725fda49a2f9875450e79
This commit is contained in:
parent
6ff70708b4
commit
5b85f6c1ef
@ -1042,7 +1042,7 @@ sal_Bool ORowSetCache::moveWindow()
|
|||||||
else if(!m_bRowCountFinal)
|
else if(!m_bRowCountFinal)
|
||||||
m_nRowCount = std::max(nPos+1, m_nRowCount); //+1 because we successfully moved to row after nPos
|
m_nRowCount = std::max(nPos+1, m_nRowCount); //+1 because we successfully moved to row after nPos
|
||||||
else
|
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
|
else
|
||||||
{ // the end was reached before or at end() so we can set the start before or at nNewStartPos
|
{ // the end was reached before or at end() so we can set the start before or at nNewStartPos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user