summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-07 20:52:22 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 19:51:05 +0200
commit98c55e4c350931daad45db2d7478006756ff1324 (patch)
treed55839afc089f695dca330e8a9b5f7e67755288d /vcl
parent2067d03f8ad7e58ae0ac1387a51858f012e8c7f1 (diff)
WMF: partially revert change as for some documents text is not drawn
revert part of 00e577ac012405f29003533c145bd29d0edbf6db which causes that the text in some WMF images is not drawn. For example the document in fdo#56886 Change-Id: I401c702f0567b1f142a82a4417abe719687a86f9
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index 7aa73372c6f8..d925d0452a9b 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -460,13 +460,11 @@ void WinMtfOutput::ImplMap( Font& rFont )
{
// !!! HACK: we now always set the width to zero because the OS width is interpreted differently;
// must later be made portable in SV (KA 1996-02-08)
- Size aFontSize = rFont.GetSize();
+ Size aFontSize = ImplMap (rFont.GetSize());
if( aFontSize.Height() < 0 )
aFontSize.Height() *= -1;
- aFontSize = ImplMap (aFontSize);
-
rFont.SetSize( aFontSize );
if( ( mnWinExtX * mnWinExtY ) < 0 )