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 17ec2171..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 ) );