Kaydet (Commit) 4ba2b2ae authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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
üst 9d3c0aa1
...@@ -1972,7 +1972,7 @@ void WinMtfOutput::SetRefMill( const Size& rSize ) ...@@ -1972,7 +1972,7 @@ void WinMtfOutput::SetRefMill( const Size& rSize )
void WinMtfOutput::SetMapMode( sal_uInt32 nMapMode ) void WinMtfOutput::SetMapMode( sal_uInt32 nMapMode )
{ {
mnMapMode = nMapMode; mnMapMode = nMapMode;
if ( nMapMode == MM_TEXT ) if ( nMapMode == MM_TEXT && !mbIsMapWinSet )
{ {
mnWinExtX = mnDevWidth; mnWinExtX = mnDevWidth;
mnWinExtY = mnDevHeight; mnWinExtY = mnDevHeight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment