summaryrefslogtreecommitdiff
path: root/source/html/epub-doc.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-12-13 12:39:29 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-12-16 02:16:58 +0100
commitbf8fa993e6403991bfcad13ccfb2873e32c37194 (patch)
tree00cc6f7abbe44e5903223e4a84b6f1d045d0d324 /source/html/epub-doc.c
parent718ce3051843a684084fb15d890aab8945605f60 (diff)
downloadmupdf-bf8fa993e6403991bfcad13ccfb2873e32c37194.tar.xz
gl: Print warning when link destinations cannot be found.
Diffstat (limited to 'source/html/epub-doc.c')
-rw-r--r--source/html/epub-doc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c
index 6c776bfa..ed52484c 100644
--- a/source/html/epub-doc.c
+++ b/source/html/epub-doc.c
@@ -59,6 +59,7 @@ epub_resolve_link(fz_context *ctx, fz_document *doc_, const char *dest, float *x
if (yp) *yp = y - page * ch->page_h;
return ch->start + page;
}
+ return -1;
}
return ch->start;
}