[Libreoffice-commits] core.git: sc/source
Katarina Behrens
Katarina.Behrens at cib.de
Fri Mar 3 16:14:08 UTC 2017
sc/source/ui/view/preview.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit c07ac0d92ad830762906586164bab466a0f05531
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Wed Mar 1 17:45:16 2017 +0100
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 at libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 3a5b1d0..87446dc 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;
}
More information about the Libreoffice-commits
mailing list