diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2021-10-15 02:00:30 +0200 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2021-10-16 01:15:21 +0200 |
commit | 64bacd4f2bd9c8e10e8c9a0b7d18516c77260df3 (patch) | |
tree | f13526beee4e497da859e0be41e4f6378d73bf25 /svx/source | |
parent | 7a001d3706bee453db46fb38c80c17bb84fda4af (diff) |
tdf#145111 evaluate nVertDiff for HORZADJUST_LEFT too
In case of ScaleX=true in property TextPath, SDRTEXTVERTADJUST is
evaluated and should shift the Fontwork text. That did not work for
'LeftTop' and 'LeftBottom'.
Error was that in case of SDRTEXTHORZADJUST_LEFT the vertical shift
was not considered.
Change-Id: I4edb47515c4bf40e17b4054c3a10220df8468028
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123613
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index 669a855388cf..56f67fcb0c89 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -493,7 +493,7 @@ static bool GetFontWorkOutline( else if ( eHorzAdjust == SDRTEXTHORZADJUST_RIGHT ) nHorzDiff = ( rFWData.fHorizontalTextScaling * rTextArea.aBoundRect.GetWidth() - rParagraph.aBoundRect.GetWidth() ); - if (nHorzDiff) + if (nHorzDiff || nVertDiff) { for ( auto& rCharacter : rParagraph.vCharacters ) { |