X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fdevices%2Fswf.c;h=94e4c36dd030da0d24e43ca9b75fa8f7ad849d80;hb=fd812e6f288b19810fd7cd9b1460b804784b4093;hp=ff0cc231f3597eb412a5b5bb3163a208625b7bd0;hpb=916fb93fed7837d46de4254a0e623f6bc3d7e994;p=swftools.git diff --git a/lib/devices/swf.c b/lib/devices/swf.c index ff0cc23..94e4c36 100644 --- a/lib/devices/swf.c +++ b/lib/devices/swf.c @@ -1390,7 +1390,7 @@ void swf_drawlink(gfxdevice_t*dev, gfxline_t*points, char*url) if(url[t]<'0' || url[t]>'9') nodigit = 1; if(!nodigit) { - int page = atoi(&url[4]) - 1; + int page = atoi(&url[4]); if(page<0) page = 0; swfoutput_linktopage(dev, page, points); } @@ -1435,7 +1435,7 @@ void swfoutput_linktopage(gfxdevice_t*dev, int page, gfxline_t*points) endtext(dev); if(!i->config_internallinkfunction) { - actions = action_GotoFrame(actions, page); + actions = action_GotoFrame(actions, page-1); actions = action_End(actions); } else { actions = action_PushInt(actions, page); //parameter