git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
font->flags is now font->style, font->encoding
[swftools.git]
/
pdf2swf
/
xpdf
/
Link.cc
diff --git
a/pdf2swf/xpdf/Link.cc
b/pdf2swf/xpdf/Link.cc
index
adb8c97
..
154a577
100644
(file)
--- a/
pdf2swf/xpdf/Link.cc
+++ b/
pdf2swf/xpdf/Link.cc
@@
-39,7
+39,8
@@
LinkDest::LinkDest(Array *a, GBool pageIsRef1) {
// get page
if (pageIsRef) {
if (!a->getNF(0, &obj1)->isRef()) {
// get page
if (pageIsRef) {
if (!a->getNF(0, &obj1)->isRef()) {
- error(-1, "Bad annotation destination");
+ if(obj1.getType()!=objInt)
+ error(-1, "Bad annotation destination (1) type=%d", obj1.getType());
goto err2;
}
pageRef.num = obj1.getRefNum();
goto err2;
}
pageRef.num = obj1.getRefNum();
@@
-47,7
+48,7
@@
LinkDest::LinkDest(Array *a, GBool pageIsRef1) {
obj1.free();
} else {
if (!a->get(0, &obj1)->isInt()) {
obj1.free();
} else {
if (!a->get(0, &obj1)->isInt()) {
- error(-1, "Bad annotation destination");
+ error(-1, "Bad annotation destination (2)");
goto err2;
}
pageNum = obj1.getInt() + 1;
goto err2;
}
pageNum = obj1.getInt() + 1;