diff options
author | Eike Rathke <erack@redhat.com> | 2013-04-23 18:09:43 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-04-23 18:26:17 +0200 |
commit | 3874bad70ea48deed91b9966b3d35782b5584f7d (patch) | |
tree | 7872135161ea317e7b948979658a0d5f4bee8fb9 /sc/source/core | |
parent | a5f675c3d3254f03da8fbf42028a9c6b048df635 (diff) |
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
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/column2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index 82f03cc73930..d0d53eadece5 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -1353,7 +1353,7 @@ SCROW ScColumn::FindNextVisibleRowWithContent(SCROW nRow, bool bForward) const bool bThere = Search( nRow, nIndex ); if( bThere && !maItems[nIndex].pCell->IsBlank()) return nRow; - else if(nIndex >= maItems.size()) + else if((bThere ? nIndex+1 : nIndex) >= maItems.size()) return MAXROW; else { |