summaryrefslogtreecommitdiff
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-10 15:17:28 +0000
commitacd58ceaa1d792d0a16c270c56ff727321fb2aac (patch)
tree16e6ce729e2f3fa66d215f57350b415abf158344
parentdcda65506e0a5c8526cfd7bbd0e3d4721507871f (diff)
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> (cherry picked from commit c07ac0d92ad830762906586164bab466a0f05531) Reviewed-on: https://gerrit.libreoffice.org/34946
-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 7099142c5dc9..bf8115acd32c 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -249,18 +249,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;
}