From: kramm Date: Sun, 16 Apr 2006 13:36:13 +0000 (+0000) Subject: added explicit Action_End() to all links X-Git-Tag: release-0-8-0~225 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=916fb93fed7837d46de4254a0e623f6bc3d7e994 added explicit Action_End() to all links --- diff --git a/lib/devices/swf.c b/lib/devices/swf.c index 51a1123..ff0cc23 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -1442,6 +1442,7 @@ void swfoutput_linktopage(gfxdevice_t*dev, int page, gfxline_t*points) actions = action_PushInt(actions, 1); //number of parameters (1) actions = action_PushString(actions, i->config_internallinkfunction); //function name actions = action_CallFunction(actions); + actions = action_End(actions); } drawlink(dev, actions, 0, points,0); @@ -1469,12 +1470,14 @@ void swfoutput_namedlink(gfxdevice_t*dev, char*name, gfxline_t*points) actions1 = action_PushInt(0, 0); //number of parameters (0) actions1 = action_PushString(actions1, &tmp[5]); //function name actions1 = action_CallFunction(actions1); + actions1 = action_End(actions1); } else { *x = 0; actions1 = action_PushString(0, x+1); //parameter actions1 = action_PushInt(actions1, 1); //number of parameters (1) actions1 = action_PushString(actions1, &tmp[5]); //function name actions1 = action_CallFunction(actions1); + actions1 = action_End(actions1); } actions2 = action_End(0); mouseover = 0;