Kaydet (Commit) 3874bad7 authored tarafından Eike Rathke's avatar Eike Rathke

fixed out of bounds vector access

in ScColumn::FindNextVisibleRowWithContent() if starting from the
position all including the last present cell of a column are blank

Change-Id: I0270331444f1707b6ad413f6127ae4c2cf0b1984
üst a5f675c3
...@@ -1353,7 +1353,7 @@ SCROW ScColumn::FindNextVisibleRowWithContent(SCROW nRow, bool bForward) const ...@@ -1353,7 +1353,7 @@ SCROW ScColumn::FindNextVisibleRowWithContent(SCROW nRow, bool bForward) const
bool bThere = Search( nRow, nIndex ); bool bThere = Search( nRow, nIndex );
if( bThere && !maItems[nIndex].pCell->IsBlank()) if( bThere && !maItems[nIndex].pCell->IsBlank())
return nRow; return nRow;
else if(nIndex >= maItems.size()) else if((bThere ? nIndex+1 : nIndex) >= maItems.size())
return MAXROW; return MAXROW;
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment