summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2016-09-06 20:56:08 +1000
committerjan iversen <jani@documentfoundation.org>2016-10-07 07:06:40 +0000
commitbf25013d4332dd7ed18f591e1d8c0e9591b0a8a7 (patch)
tree737886039d357bdcf9c2943cd67da32425fd9d79
parent0876bf5c7cd0c56868350eb702614698ee5466c6 (diff)
tdf#39256: Fix "Orientation treated as Escapement"
This fixes #5 issue of abovementioned bugzilla entry. As LO font doesn't support individual rotation of characters, now we simply ignore lfOrientation (as MS Word does). Change-Id: I36fd05f8e27f768ea690527360434df29e1d843f Reviewed-on: https://gerrit.libreoffice.org/28684 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index fba68a2b467e..36aae2884214 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -248,10 +248,7 @@ WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont )
if( rFont.lfStrikeOut )
aFont.SetStrikeout( STRIKEOUT_SINGLE );
- if ( rFont.lfOrientation )
- aFont.SetOrientation( (short)rFont.lfOrientation );
- else
- aFont.SetOrientation( (short)rFont.lfEscapement );
+ aFont.SetOrientation( (short)rFont.lfEscapement );
Size aFontSize( Size( rFont.lfWidth, rFont.lfHeight ) );
if ( rFont.lfHeight > 0 )