git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4319d1
)
fixed page number link bug
author
kramm
<kramm>
Mon, 5 Jun 2006 07:14:55 +0000
(07:14 +0000)
committer
kramm
<kramm>
Mon, 5 Jun 2006 07:14:55 +0000
(07:14 +0000)
lib/devices/swf.c
patch
|
blob
|
history
diff --git
a/lib/devices/swf.c
b/lib/devices/swf.c
index
ff0cc23
..
94e4c36
100644
(file)
--- 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) {
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);
}
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) {
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
actions = action_End(actions);
} else {
actions = action_PushInt(actions, page); //parameter