From: kramm Date: Sun, 6 Nov 2005 22:53:00 +0000 (+0000) Subject: for move type placeobject, always set matrix and cxform X-Git-Tag: xpdf-3-01~26 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=969fec3b5c9515a55009531d9266a47d19c2173a for move type placeobject, always set matrix and cxform --- diff --git a/lib/modules/swfobject.c b/lib/modules/swfobject.c index d108ade..75d2f94 100644 --- a/lib/modules/swfobject.c +++ b/lib/modules/swfobject.c @@ -62,11 +62,11 @@ int swf_ObjectPlace(TAG * t,U16 id,U16 depth,MATRIX * m,CXFORM * cx,U8 * name) { U8 flags; if (!t) return -1; - if(cx && cx->r1==0 && cx->g1==0 && cx->b1==0 && cx->a1==0 - && cx->r0==256 && cx->g0==256 && cx->b0==256 && cx->a0==256) + if(cx && id && cx->r1==0 && cx->g1==0 && cx->b1==0 && cx->a1==0 + && cx->r0==256 && cx->g0==256 && cx->b0==256 && cx->a0==256) cx = 0; - if(m && isUnitMatrix(m)) + if(m && id && isUnitMatrix(m)) m = 0; flags = (id?PF_CHAR:0)|(m?PF_MATRIX:0)|(cx?PF_CXFORM:0)|(name?PF_NAME:0)|((m||cx)&&(!id)?PF_MOVE:0);