diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-06-14 22:46:48 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-06-14 23:41:39 -0400 |
commit | 1f5ba3ba285c40d5b3d2375ef9eebba1b105efd7 (patch) | |
tree | 60572144a5de2924c813b0e7feafc612561a1d39 /sc/source | |
parent | 23475916e19699d5afd3129a474a273889f347d0 (diff) |
Don't forget nExcIndex is 1-based.
The old code had nExcIndex-- line but that was not accounted for in
the new code.
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/namebuff.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/namebuff.cxx b/sc/source/filter/excel/namebuff.cxx index 225ce387e9e2..3eea222264ce 100644 --- a/sc/source/filter/excel/namebuff.cxx +++ b/sc/source/filter/excel/namebuff.cxx @@ -182,7 +182,7 @@ sal_Bool ExtSheetBuffer::GetScTabIndex( sal_uInt16 nExcIndex, sal_uInt16& rScInd if ( !nExcIndex || nExcIndex > maEntries.size() ) return false; - Cont* pCur = &(maEntries[ nExcIndex ]); + Cont* pCur = &maEntries[ nExcIndex - 1 ]; sal_uInt16& rTabNum = pCur->nTabNum; if( rTabNum < 0xFFFD ) |