diff options
author | Radek Doulik <rodo@novell.com> | 2012-12-14 12:09:36 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2012-12-14 12:10:42 +0100 |
commit | c6f104e0c9a8d1953b74de4c4d13ba38a61e60d0 (patch) | |
tree | 89041057a8db94730f28291410040fb73ad24c37 /drawinglayer/source | |
parent | 63d116cb0e7654d2b4f0cf9b6a5223f98d755001 (diff) |
fix emf+ rendering
Change-Id: Ib49898362f7e648a8ce9c27b5e5b4f0b2ad93afd
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index b78ac5b1e8df..f9d583d05fb8 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -1631,8 +1631,9 @@ namespace drawinglayer case PRIMITIVE2D_ID_METAFILEPRIMITIVE2D : { static bool bUseMetaFilePrimitiveDecomposition(true); + const primitive2d::MetafilePrimitive2D& aMetafile = static_cast< const primitive2d::MetafilePrimitive2D& >(rCandidate); - if(bUseMetaFilePrimitiveDecomposition) + if(bUseMetaFilePrimitiveDecomposition && !aMetafile.getMetaFile().GetUseCanvas()) { // use new Metafile decomposition process(rCandidate.get2DDecomposition(getViewInformation2D())); @@ -1640,7 +1641,7 @@ namespace drawinglayer else { // direct draw of MetaFile, use default pocessing - RenderMetafilePrimitive2D(static_cast< const primitive2d::MetafilePrimitive2D& >(rCandidate)); + RenderMetafilePrimitive2D(aMetafile); } break; |