summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-11-21 16:28:32 +0100
committerJan Holesovsky <kendy@collabora.com>2013-11-25 14:10:46 +0100
commit4ba2b2ae62276ab7b40ba5730d631ad4b3fd6ac8 (patch)
treeb17713c55073c9acb1f61bbc10bf7bf718d91865
parent9d3c0aa1e64ae97ddc305df3873f977051f0b317 (diff)
fdo#61272: Do the mapping correctly both for WMF and EMF.
Turns out that for the WMF, we already had everything set up correctly, we were just overwriting the right settings with default data again :-) - fix that. Change-Id: I14b0c12b10f58eb7031f9da712dee76344c75159
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index 54dca140067c..dd3b3b628acd 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -1972,7 +1972,7 @@ void WinMtfOutput::SetRefMill( const Size& rSize )
void WinMtfOutput::SetMapMode( sal_uInt32 nMapMode )
{
mnMapMode = nMapMode;
- if ( nMapMode == MM_TEXT )
+ if ( nMapMode == MM_TEXT && !mbIsMapWinSet )
{
mnWinExtX = mnDevWidth;
mnWinExtY = mnDevHeight;