summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2018-03-09 14:48:49 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2018-03-09 16:45:16 +0100
commit4b59a110ddd1f02cfa0f677c68c6ef0ee1f3295d (patch)
tree50ae161a13cd541f91518f630b70d48cce226f72 /editeng/source
parent68c542cfa888f1aa03a08bfc13163c0f2f0c3a75 (diff)
tdf#116101 Correct position for linespacing > 100%
Change-Id: Ia3d90d521e03ed59312d1603b2cf5e5680b00781 Reviewed-on: https://gerrit.libreoffice.org/51005 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/impedit3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index cbb8c2b3d3d9..01eb56b577fd 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -1467,7 +1467,7 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY )
long nDiff = pLine->GetHeight() - nH;
if ( nDiff > pLine->GetMaxAscent() )
nDiff = pLine->GetMaxAscent();
- pLine->SetMaxAscent( static_cast<sal_uInt16>( pLine->GetMaxAscent() - nDiff ) * 4 / 5 ); // 80%
+ pLine->SetMaxAscent( static_cast<sal_uInt16>( pLine->GetMaxAscent() * 4 / 5 - nDiff ) ); // 80%
pLine->SetHeight( static_cast<sal_uInt16>(nH), nTxtHeight );
}
}