summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2018-10-24 13:13:41 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-10-25 11:26:11 +0200
commit1b9574ed8269f4ed9dde33856c1d74702a7fa4bb (patch)
tree0f798e00550d262272c0961af3239179433afefc
parent5af524251642a43747f56c1f24c41222fd9ac69f (diff)
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@CIB.de>
-rw-r--r--sc/source/ui/app/transobj.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 047ca19f92a8..483832bac4a3 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -693,6 +693,12 @@ void ScTransferObj::InitDocShell(bool bLimitToPageSize)
else
rDestDoc.SetColWidth( nCol, 0, m_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 ( m_pDoc->RowHidden(nRow, nSrcTab) )