diff options
author | Noel Power <noel.power@suse.com> | 2013-04-22 19:29:22 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-10-28 21:38:35 +0100 |
commit | fadbb2e75c2eeeb932db1f6baf1e32360f675abc (patch) | |
tree | 94fa9fe694bc91136de6432c56e5ec20d0b2904c /sc/source/ui/vba/vbapagebreaks.cxx | |
parent | 057beb5d95fc8704f5b98377d909856aa3b32bf6 (diff) |
fix another instance where the index is broken for pagebreaks
Conflicts:
sc/source/ui/vba/vbapagebreaks.cxx
Change-Id: I5c3215373c0a63c2831d7be5005f1b04a0645e99
Diffstat (limited to 'sc/source/ui/vba/vbapagebreaks.cxx')
-rw-r--r-- | sc/source/ui/vba/vbapagebreaks.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx index 6456cdb0c7e5..a67a3b527135 100644 --- a/sc/source/ui/vba/vbapagebreaks.cxx +++ b/sc/source/ui/vba/vbapagebreaks.cxx @@ -148,10 +148,9 @@ sheet::TablePageBreakData RangePageBreaks::getTablePageBreakData( sal_Int32 nAPI { aTablePageBreakData = aTablePageBreakDataList[i]; sal_Int32 nPos = aTablePageBreakData.Position; - if( nPos >= nUsedStart ) - index++; - if( nPos > nUsedEnd ) + if( nPos > nUsedEnd + 1 ) DebugHelper::exception(SbERR_METHOD_FAILED, OUString()); + index++; if( index == nAPIItemIndex ) return aTablePageBreakData; } |