From be285826535112518c75bf73648a877bc8552f83 Mon Sep 17 00:00:00 2001 From: yoya Date: Sun, 5 Dec 2010 15:19:22 +0000 Subject: [PATCH] =?utf8?q?setActionVariables=20=E3=81=A7=20DoAction?= =?utf8?q?=E3=82=BF=E3=82=B0=E3=82=92=E6=8C=BF=E5=85=A5=E3=81=99=E3=82=8B?= =?utf8?q?=E9=9A=9B=E3=80=81=20Attribute,=20SetBackgroundcolor=20=E3=82=88?= =?utf8?q?=E3=82=8A=E5=BE=8C=E3=82=8D=E3=81=AB=E4=BD=8D=E7=BD=AE=E3=81=95?= =?utf8?q?=E3=81=9B=E3=81=A6=E3=81=84=E3=82=8B=E3=81=8C=E3=80=81=20?= =?utf8?q?=E3=81=9D=E3=82=8C=E3=81=AB=E5=8A=A0=E3=81=88=E3=81=A6=20Protect?= =?utf8?q?=20=E3=82=BF=E3=82=B0=E3=82=88=E3=82=8A=E3=82=82=E5=BE=8C?= =?utf8?q?=E3=82=8D=E3=81=AB=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E6=94=B9?= =?utf8?q?=E9=80=A0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@349 7c90b180-03d5-4157-b861-58a559ae9d1e --- src/swf_object.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/swf_object.c b/src/swf_object.c index d00b9c6..6ce95fc 100644 --- a/src/swf_object.c +++ b/src/swf_object.c @@ -647,10 +647,18 @@ swf_object_insert_action_setvariables(swf_object_t *swf, return 1; // NG } for (tag=swf->tag ; tag ; tag=tag->next) { - if ((tag->tag != 69) && (tag->tag != 9)) { // FileAttributs or SetBackgroundColor + switch (tag->tag) { + case 69: // FileAttributs + case 9: // SetBackgroundColor + case 24: // Protect + break; + default: next_tag = tag; break; } + if (next_tag) { // found + break; + } prev_tag = tag; } if (next_tag == NULL) { -- 2.11.0