Hi Hans,

the patch fixes the regression for internal hyperlinks (footnotes and
similar) with current latest (2022.10.14 10:16).

This sample shows the issue:

  \setupinteraction[state=start,
    focus=standard]
  \starttext
  \completecontent
  \section{section}
  a\footnote{\contextversion}
  \stopsection
  \stoptext

Without the fix, destinations are referred to an unexisting 7 0 object
(instead of the page at 1 0 R).

I think this fixes the regression in current latest.

Many thanks for your help,

Pablo
--- mkxl/lpdf-ano.lmt	2022-10-14 22:37:54.479223256 +0200
+++ lpdf-ano.lmt	2022-10-14 22:37:09.792903225 +0200
@@ -468,7 +468,7 @@
 local function flushdestination(specification)
     local names = specification.names
     local view  = specification.view
-    local r     = pdfpagereference(c_realpageno)
+    local r     = pdfpagereference(texgetcount(c_realpageno))
     if (references.innermethod ~= v_name) and (view == defaultview or not view or view == "") then
         r = pagedestinations[r]
     else
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to