summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej.hunt@collabora.com>2013-12-05 11:36:53 +0000
committerAndrzej J.R. Hunt <andrzej.hunt@collabora.com>2013-12-05 12:33:37 +0000
commitdaa2340716bcc8a2bea32e4f3e91f34da8fa7224 (patch)
tree36f7d39860527f41d442c7c16366f1e7e02dbb80 /vcl
parentbf53bea48d5184455841a8d8963eea35293c0b8e (diff)
EMF+: force canvas if EMF+ comments are used.
Without this the drawinglayer renderer is used, whereas only the canvas renderer supports EMF+. Change-Id: Id8a10e400e08c1913e7d6864a51f7b73fc9be437 (cherry picked from commit be7d87bea2611eb316b9b379aebc031179d4f794)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/gdimtf.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 820f2a051524..1d89dea13de9 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -2765,6 +2765,13 @@ SvStream& operator>>( SvStream& rIStm, GDIMetaFile& rGDIMetaFile )
{
pAction = MetaAction::ReadMetaAction( rIStm, &aReadData );
+ if (pAction->GetType() == META_COMMENT_ACTION)
+ {
+ MetaCommentAction* pCommentAct = static_cast<MetaCommentAction*>(pAction);
+ if ( pCommentAct->GetComment() == "EMF_PLUS" )
+ rGDIMetaFile.UseCanvas( sal_True );
+ }
+
if( pAction )
rGDIMetaFile.AddAction( pAction );
}