summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily Melenchuk <Vasily.Melenchuk@cib.de>2018-06-28 17:44:39 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-06-29 10:52:51 +0200
commite2fce4f05084061efb64e53444ab5d2d0d05b612 (patch)
treec8d60aec8731ed515cafee0ca552c08623ddc0c7
parentae2fd281e046b2199ef44777b84518cd3abb2952 (diff)
tdf#118086: calc: invalid row autoheight fixed
RowHeightContext should be initialized for each tab separately. Reusage of same data was causing invalid heights for next pages. Change-Id: Ib10518a8eef416e2197d0f6232fc981ce748882b Reviewed-on: https://gerrit.libreoffice.org/56603 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sc/source/core/data/dociter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index a5d78bb20859..7cee2538b471 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -2565,13 +2565,13 @@ void ScDocRowHeightUpdater::update()
Fraction aZoom(1, 1);
itr = mpTabRangesArray->begin();
sal_uInt32 nProgressStart = 0;
- sc::RowHeightContext aCxt(mfPPTX, mfPPTY, aZoom, aZoom, mpOutDev);
for (; itr != itrEnd; ++itr)
{
SCTAB nTab = itr->mnTab;
if (!ValidTab(nTab) || nTab >= mrDoc.GetTableCount() || !mrDoc.maTabs[nTab])
continue;
+ sc::RowHeightContext aCxt(mfPPTX, mfPPTY, aZoom, aZoom, mpOutDev);
ScFlatBoolRowSegments::RangeData aData;
ScFlatBoolRowSegments::RangeIterator aRangeItr(*itr->mpRanges);
for (bool bFound = aRangeItr.getFirst(aData); bFound; bFound = aRangeItr.getNext(aData))