[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Nov 14 10:13:00 UTC 2018
sc/source/ui/app/transobj.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 73236340d319538706eb60a5eb75148f733ad8ba
Author: Vasily Melenchuk <vasily.melenchuk at cib.de>
AuthorDate: Wed Oct 24 13:13:41 2018 +0200
Commit: Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Wed Nov 14 11:12:37 2018 +0100
tdf#118747 sc: use manual height for previous rows in TransferObj
This can ensure, that visible area will not shift if autoheight
will change height of previous rows.
Change-Id: I66e013e9f3f27396f13b26fde37353cb63e47258
Reviewed-on: https://gerrit.libreoffice.org/62279
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
(cherry picked from commit 1b9574ed8269f4ed9dde33856c1d74702a7fa4bb)
Reviewed-on: https://gerrit.libreoffice.org/63362
Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 802533f05e11..578e0fab4c7e 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -643,6 +643,12 @@ void ScTransferObj::InitDocShell(bool bLimitToPageSize)
else
rDestDoc.SetColWidth( nCol, 0, pDoc->GetColWidth( nCol, nSrcTab ) );
+ if (nStartY > 0)
+ {
+ // Set manual height for all previous rows so we can ensure
+ // that visible area will not change due to autoheight
+ rDestDoc.SetManualHeight(0, nStartY - 1, 0, true);
+ }
for (SCROW nRow = nStartY; nRow <= nEndY; ++nRow)
{
if ( pDoc->RowHidden(nRow, nSrcTab) )
More information about the Libreoffice-commits
mailing list