git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* can now have one more than fontdir/languagedir by using fontdir1,fontdir2...
[swftools.git]
/
pdf2swf
/
SWFOutputDev.cc
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
68d7e27
..
b3b510e
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-1576,13
+1576,12
@@
void SWFOutputDev::drawLink(Link *link, Catalog *catalog)
break;
}
}
break;
}
}
- if(lpage>=0) {
- char buf[80];
- sprintf(buf, "page%d", t);
- output->drawlink(output, points, buf);
- } else {
- msg("<warning> Invalid link to page %d", page);
+ if(lpage<0) {
+ lpage = page;
}
}
+ char buf[80];
+ sprintf(buf, "page%d", lpage);
+ output->drawlink(output, points, buf);
}
else if(url)
{
}
else if(url)
{
@@
-2542,9
+2541,9
@@
void pdfswf_setparameter(char*name, char*value)
storeDeviceParameter("ppmsubpixels", buf);
} else if(!strcmp(name, "forceType0Fonts")) {
forceType0Fonts = atoi(value);
storeDeviceParameter("ppmsubpixels", buf);
} else if(!strcmp(name, "forceType0Fonts")) {
forceType0Fonts = atoi(value);
- } else if(!strcmp(name, "fontdir")) {
+ } else if(!strncmp(name, "fontdir", strlen("fontdir"))) {
pdfswf_addfontdir(value);
pdfswf_addfontdir(value);
- } else if(!strcmp(name, "languagedir")) {
+ } else if(!strncmp(name, "languagedir", strlen("languagedir"))) {
pdfswf_addlanguagedir(value);
} else if(!strcmp(name, "fontconfig")) {
config_use_fontconfig = atoi(value);
pdfswf_addlanguagedir(value);
} else if(!strcmp(name, "fontconfig")) {
config_use_fontconfig = atoi(value);