cppcanvas/source/mtfrenderer/emfplus.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 4bc3ead0649bf2885050ec4cfb47a5ed13bfa41e Author: Muthu Subramanian <sumu...@suse.com> Date: Thu Apr 25 11:57:59 2013 +0530 n#812793: (Workaround) Transparent background import in EMF+. EMF+ seems to have alpha of 0xff for transparent background! diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 17ec217..bcc24f2 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 ) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits