diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-05-15 16:16:32 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-05-19 13:39:26 +0200 |
commit | bb66f6335fce7cacf83fa6289eb3b433c4e29b6a (patch) | |
tree | f1f051ff658ecd63c453452e6dfd34815adbae6a /source | |
parent | 5509a4ef7520bf0b5280ce7d6af8eb15b1b8b0f1 (diff) | |
download | mupdf-bb66f6335fce7cacf83fa6289eb3b433c4e29b6a.tar.xz |
Make unresolvable link destinations warnings instead of errors.
See bug 693314 (file Z23-04.pdf) for an example file.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-annot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c index c3440c63..6b786985 100644 --- a/source/pdf/pdf-annot.c +++ b/source/pdf/pdf-annot.c @@ -65,7 +65,10 @@ pdf_parse_link_dest(pdf_document *doc, fz_link_kind kind, pdf_obj *dest) dest = resolve_dest(doc, dest, kind); if (dest == NULL) - fz_throw(doc->ctx, FZ_ERROR_GENERIC, "Undefined link_dest"); + { + fz_warn(doc->ctx, "undefined link destination"); + return ld; + } if (pdf_is_name(dest)) { |