From 7922a4e8c418c48ffeeec0f95be24359fc817267 Mon Sep 17 00:00:00 2001 From: kramm Date: Thu, 1 Nov 2001 00:51:17 +0000 Subject: [PATCH 1/1] disabled a warning --- pdf2swf/xpdf/Link.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdf2swf/xpdf/Link.cc b/pdf2swf/xpdf/Link.cc index adb8c97..154a577 100644 --- 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()) { - 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(); @@ -47,7 +48,7 @@ LinkDest::LinkDest(Array *a, GBool pageIsRef1) { 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; -- 1.7.10.4