diff options
author | Vasily Melenchuk <Vasily.Melenchuk@cib.de> | 2018-06-28 17:44:39 +0300 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2018-07-03 17:46:34 +0200 |
commit | dd645e70108f31aab611634e77c120e5efe52d05 (patch) | |
tree | 202cb73166914cff5c27faad30ca103a1d9e7ba6 /sc/source | |
parent | d96ba7a7df7d28558adaaf9b28026dd73855c3cb (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>
(cherry picked from commit e2fce4f05084061efb64e53444ab5d2d0d05b612)
Reviewed-on: https://gerrit.libreoffice.org/56861
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/dociter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx index 959ffd24610e..3f76513cb8d1 100644 --- a/sc/source/core/data/dociter.cxx +++ b/sc/source/core/data/dociter.cxx @@ -2576,13 +2576,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)) |