From bf8fa993e6403991bfcad13ccfb2873e32c37194 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Dec 2016 12:39:29 +0100 Subject: gl: Print warning when link destinations cannot be found. --- source/html/epub-doc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/html/epub-doc.c') 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; } -- cgit v1.2.3