summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2017-03-01 17:45:16 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-03-03 16:13:30 +0000
commitc07ac0d92ad830762906586164bab466a0f05531 (patch)
tree3391bff38475c9d8bc909dc7cf2b481954bf4f50
parentUpdated core (diff)
downloadcore-c07ac0d92ad830762906586164bab466a0f05531.tar.gz
core-c07ac0d92ad830762906586164bab466a0f05531.zip
tdf#95612: Print preview: page numbering starts with 1 (not 0)
unless otherwise specified. It was okay for 1st page & broken everywhere else. Possibly resolves tdf#95206 as well ... Change-Id: Ie69f770a28dd69f90d4f04ad4fa9e701fa2d56e2 Reviewed-on: https://gerrit.libreoffice.org/34759 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sc/source/ui/view/preview.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 3a5b1d043d5e..87446dc62b75 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -250,18 +250,18 @@ void ScPreview::CalcPages()
while (nStart > static_cast<SCTAB>(nPages.size()))
nPages.push_back(0);
while (nStart > static_cast<SCTAB>(nFirstAttr.size()))
- nFirstAttr.push_back(0);
+ nFirstAttr.push_back(1);
for (SCTAB i=nStart; i<nTabCount; i++)
{
if ( i == static_cast<SCTAB>(nPages.size()))
nPages.push_back(0);
if ( i == static_cast<SCTAB>(nFirstAttr.size()))
- nFirstAttr.push_back(0);
+ nFirstAttr.push_back(1);
if (!aOptions.GetAllSheets() && maSelectedTabs.count(i) == 0)
{
nPages[i] = 0;
- nFirstAttr[i] = 0;
+ nFirstAttr[i] = 1;
continue;
}