From: kramm Date: Thu, 1 Nov 2001 00:51:17 +0000 (+0000) Subject: disabled a warning X-Git-Tag: release-0-1-0~22 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=7922a4e8c418c48ffeeec0f95be24359fc817267;hp=e69624f1874a913c6e0ec289a88a23e731f67be6;p=swftools.git disabled a warning --- 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;