Kaydet (Commit) 198b17dc authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Related fdo#61272: Revert "wmf-mm-text-1.diff: Fix WMF rendering, n#417818"

This approach to WMF breaks EMF reading, need to revert it, and fix a
different way.

This reverts commit 16eaa5e7.

Conflicts:
	vcl/source/filter/wmf/winmtf.cxx

Change-Id: I59076d0a65d91ba3a1f3ebb48d8f7a542859d351
üst 5854f6c4
...@@ -343,15 +343,10 @@ Point WinMtfOutput::ImplMap( const Point& rPt ) ...@@ -343,15 +343,10 @@ Point WinMtfOutput::ImplMap( const Point& rPt )
case MM_TEXT: case MM_TEXT:
fX2 -= mnWinOrgX; fX2 -= mnWinOrgX;
fY2 -= mnWinOrgY; fY2 -= mnWinOrgY;
if( mnDevWidth != 1 || mnDevHeight != 1 ) { fX2 *= 2540.0/mnUnitsPerInch;
fX2 *= HUNDREDTH_MILLIMETERS_PER_MILLIINCH*1000/mnUnitsPerInch; fY2 *= 2540.0/mnUnitsPerInch;
fY2 *= HUNDREDTH_MILLIMETERS_PER_MILLIINCH*1000/mnUnitsPerInch;
}
fX2 += mnDevOrgX; fX2 += mnDevOrgX;
fY2 += mnDevOrgY; fY2 += mnDevOrgY;
fX2 *= (double)mnMillX * 100.0 / (double)mnPixX;
fY2 *= (double)mnMillY * 100.0 / (double)mnPixY;
break; break;
case MM_LOENGLISH : case MM_LOENGLISH :
{ {
...@@ -439,13 +434,8 @@ Size WinMtfOutput::ImplMap( const Size& rSz ) ...@@ -439,13 +434,8 @@ Size WinMtfOutput::ImplMap( const Size& rSz )
switch( mnMapMode ) switch( mnMapMode )
{ {
case MM_TEXT: case MM_TEXT:
if( mnDevWidth != 1 && mnDevHeight != 1 ) { fWidth *= 2540.0/mnUnitsPerInch;
fWidth *= HUNDREDTH_MILLIMETERS_PER_MILLIINCH*1000/mnUnitsPerInch; fHeight*= 2540.0/mnUnitsPerInch;
fHeight*= HUNDREDTH_MILLIMETERS_PER_MILLIINCH*1000/mnUnitsPerInch;
} else {
fWidth *= (double)mnMillX * 100 / (double)mnPixX;
fHeight *= (double)mnMillY * 100 / (double)mnPixY;
}
break; break;
case MM_LOENGLISH : case MM_LOENGLISH :
{ {
......
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