Kaydet (Commit) 9d3c0aa1 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Related fdo#61272: Revert "wmf-mm-text.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 db1b08d2.

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

Change-Id: I8f779791153f2e1faa086c91b82b3e8b93304f3b
üst 198b17dc
......@@ -340,14 +340,6 @@ Point WinMtfOutput::ImplMap( const Point& rPt )
{
switch( mnMapMode )
{
case MM_TEXT:
fX2 -= mnWinOrgX;
fY2 -= mnWinOrgY;
fX2 *= 2540.0/mnUnitsPerInch;
fY2 *= 2540.0/mnUnitsPerInch;
fX2 += mnDevOrgX;
fY2 += mnDevOrgY;
break;
case MM_LOENGLISH :
{
fX2 -= mnWinOrgX;
......@@ -433,10 +425,6 @@ Size WinMtfOutput::ImplMap( const Size& rSz )
{
switch( mnMapMode )
{
case MM_TEXT:
fWidth *= 2540.0/mnUnitsPerInch;
fHeight*= 2540.0/mnUnitsPerInch;
break;
case MM_LOENGLISH :
{
fWidth *= HUNDREDTH_MILLIMETERS_PER_MILLIINCH*10;
......@@ -873,7 +861,6 @@ WinMtfOutput::WinMtfOutput( GDIMetaFile& rGDIMetaFile ) :
mbComplexClip ( false ),
mnGfxMode ( GM_COMPATIBLE ),
mnMapMode ( MM_TEXT ),
mnUnitsPerInch ( 96 ),
mnDevOrgX ( 0 ),
mnDevOrgY ( 0 ),
mnDevWidth ( 1 ),
......@@ -1999,14 +1986,6 @@ void WinMtfOutput::SetMapMode( sal_uInt32 nMapMode )
void WinMtfOutput::SetUnitsPerInch( sal_uInt16 nUnitsPerInch )
{
if( nUnitsPerInch != 0 )
mnUnitsPerInch = nUnitsPerInch;
}
void WinMtfOutput::SetWorldTransform( const XForm& rXForm )
{
maXForm.eM11 = rXForm.eM11;
......
......@@ -575,7 +575,6 @@ struct GDIObj
class WinMtfOutput
{
WinMtfPathObj aPathObj;
WinMtfClipPath aClipPath;
......@@ -612,7 +611,6 @@ class WinMtfOutput
sal_uInt32 mnGfxMode;
sal_uInt32 mnMapMode;
sal_uInt16 mnUnitsPerInch;
XForm maXForm;
sal_Int32 mnDevOrgX, mnDevOrgY;
......@@ -666,7 +664,6 @@ public:
sal_uInt32 GetMapMode() const { return mnMapMode; };
void SetMapMode( sal_uInt32 mnMapMode );
void SetUnitsPerInch( sal_uInt16 nUnitsPerInch );
void SetWorldTransform( const XForm& rXForm );
const XForm& GetWorldTransform() const { return maXForm; }
void ModifyWorldTransform( const XForm& rXForm, sal_uInt32 nMode );
......
......@@ -1109,7 +1109,6 @@ sal_Bool WMFReader::ReadHeader()
}
}
pOut->SetUnitsPerInch( nUnitsPerInch );
pOut->SetWinOrg( aPlaceableBound.TopLeft() );
Size aWMFSize( labs( aPlaceableBound.GetWidth() ), labs( aPlaceableBound.GetHeight() ) );
pOut->SetWinExt( aWMFSize );
......
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