X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=pdf2swf%2Fswfoutput.cc;h=5d4493f4c8b62b5f2be49ceab26ecdd8a8eb67cb;hp=edb13a30108108ce59ecbac95ea54bede9f6ed68;hb=1592b59ab70de77446cacc437f984c846d10c404;hpb=8c45842937d727e37c34c675b4957d9bf31111d5 diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index edb13a3..5d4493f 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -489,10 +489,10 @@ void swfoutput_drawpath(swfoutput*output, T1_OUTLINE*outline, if(textid>=0) endtext(); - /* XXX the following is needed due to a bug in the SWF player. - Filled shapes consisting solely of curves don't get - filled correctly if they are in the same shape */ - if(shapeid>=0 && fill) { + /* Multiple polygons in one shape don't overlap correctly, + so we better start a new shape here if the polygon is filled + */ + if(shapeid>=0 && fill && !ignoredraworder) { endshape(); }