Some documents have internal links pointing to a source that is not a
document, like FixedDocSeq.fdseq. In this case we can just try to see
wether the current document has the anchor in its link target list.
dest = ev_link_dest_new_named (anchor);
ev_action = ev_link_action_new_dest (dest);
+ } else if (doc == -1 && anchor &&
+ gxps_document_get_page_for_anchor (xps_document->doc, anchor) >= 0) {
+ /* Internal, but source is not a doc,
+ * let's try with doc = 0
+ */
+ dest = ev_link_dest_new_named (anchor);
+ ev_action = ev_link_action_new_dest (dest);
} else {
gchar *filename;