diff options
author | Muthu Subramanian <sumuthu@suse.com> | 2013-04-25 11:57:59 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@suse.com> | 2013-04-25 11:57:59 +0530 |
commit | 4bc3ead0649bf2885050ec4cfb47a5ed13bfa41e (patch) | |
tree | ee5813052e218487982a06156f7d621291bfa1d3 /cppcanvas | |
parent | 06b918053fb9cf455cf431ca001a63030092d018 (diff) |
n#812793: (Workaround) Transparent background import in EMF+.
EMF+ seems to have alpha of 0xff for transparent background!
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 17ec217130c0..bcc24f2a94c7 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -887,10 +887,14 @@ namespace cppcanvas ActionSharedPtr pPolyAction; if (isColor) { - EMFP_DEBUG (printf ("EMF+\t\tcolor fill\n")); - + EMFP_DEBUG (printf ("EMF+\t\tcolor fill:0x%X\n", brushIndexOrColor)); rState.isFillColorSet = true; rState.isLineColorSet = false; + // n#812793: EMF+ Seems to specify transparent background with Alpha=0xFF ! + // Workaround for the problem. + if(brushIndexOrColor == 0xFFFFFFFF) + brushIndexOrColor = 0xFFFFFF; + SET_FILL_COLOR(brushIndexOrColor); pPolyAction = ActionSharedPtr ( internal::PolyPolyActionFactory::createPolyPolyAction( localPolygon, rParms.mrCanvas, rState ) ); |