summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorAlicVB <dev@lnaa.fr>2018-10-17 22:03:24 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-10-25 16:09:28 +0200
commit87239dbf7d57d812cdecbf75f6e86afaa4864abb (patch)
tree05803053e02f8a7dc66f48d1720d22ac7acce809 /editeng
parent8043727a5882d7cc7904a79ded6c989a18b8c67a (diff)
tdf#120525 fix linespacing <100% for impress
apply linespacing changes even for fonts with big descent values Change-Id: If1763da1ea015822d90a5c7410ca90dcaa71d22f Reviewed-on: https://gerrit.libreoffice.org/61894 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 14e2510024aa..85ab762eeb65 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -1445,10 +1445,10 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY )
sal_uInt16 nNewAscent = pLine->GetTxtHeight() * nPropLineSpace / 100 * 4 / 5; // 80%
if ( !nAscent || nAscent > nNewAscent )
{
- sal_uInt16 nHeight = pLine->GetHeight() * nPropLineSpace / 100;
- pLine->SetHeight( nHeight, pLine->GetTxtHeight() );
pLine->SetMaxAscent( nNewAscent );
}
+ sal_uInt16 nHeight = pLine->GetHeight() * nPropLineSpace / 100;
+ pLine->SetHeight( nHeight, pLine->GetTxtHeight() );
}
else if ( rLSItem.GetPropLineSpace() && ( rLSItem.GetPropLineSpace() != 100 ) )
{