diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-11-20 21:17:50 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-25 14:10:46 +0100 |
commit | 9d3c0aa1e64ae97ddc305df3873f977051f0b317 (patch) | |
tree | 3cedb7839dcd42a64159a45dbd6012f58df9234a /vcl | |
parent | 198b17dc5e182dfb2e5c930458764c7b3e6c914f (diff) |
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 db1b08d217ebbdd1b0296e1da260bf314a77acf5.
Conflicts:
vcl/source/filter/wmf/winmtf.cxx
vcl/source/filter/wmf/winmtf.hxx
Change-Id: I8f779791153f2e1faa086c91b82b3e8b93304f3b
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/wmf/winmtf.cxx | 21 | ||||
-rw-r--r-- | vcl/source/filter/wmf/winmtf.hxx | 3 | ||||
-rw-r--r-- | vcl/source/filter/wmf/winwmf.cxx | 1 |
3 files changed, 0 insertions, 25 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx index e40809827a0e..54dca140067c 100644 --- a/vcl/source/filter/wmf/winmtf.cxx +++ b/vcl/source/filter/wmf/winmtf.cxx @@ -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; diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx index 163c9fc623f9..9db92458cb24 100644 --- a/vcl/source/filter/wmf/winmtf.hxx +++ b/vcl/source/filter/wmf/winmtf.hxx @@ -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 ); diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx index ff97d106068b..f3cfaf2d2817 100644 --- a/vcl/source/filter/wmf/winwmf.cxx +++ b/vcl/source/filter/wmf/winwmf.cxx @@ -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 ); |