diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-11-21 16:28:32 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-25 16:04:44 +0100 |
commit | ec27d36b2adea77201c03ae88ee71ac259e847be (patch) | |
tree | 86da1fd90448fd734aa130555fda0d7e0d535e21 | |
parent | cca0ae43e58f875116fd922c2b70ef6c89305fcf (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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx index 74aed1da0b9e..9120b261071b 100644 --- a/vcl/source/filter/wmf/winmtf.cxx +++ b/vcl/source/filter/wmf/winmtf.cxx @@ -2006,7 +2006,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; |