[latex3-commits] [git/LaTeX3-latex3-pdfresources] correctannot: remove duplicate subtype for goto (7bb3c7f)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Mar 3 19:30:20 CET 2021
Repository : https://github.com/latex3/pdfresources
On branch : correctannot
Link : https://github.com/latex3/pdfresources/commit/7bb3c7f9e49356762a2316f79bc1aad6fd3a14ec
>---------------------------------------------------------------
commit 7bb3c7f9e49356762a2316f79bc1aad6fd3a14ec
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Mar 3 19:30:20 2021 +0100
remove duplicate subtype for goto
>---------------------------------------------------------------
7bb3c7f9e49356762a2316f79bc1aad6fd3a14ec
l3pdfannot.dtx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/l3pdfannot.dtx b/l3pdfannot.dtx
index 2ec8482..42463f7 100644
--- a/l3pdfannot.dtx
+++ b/l3pdfannot.dtx
@@ -528,7 +528,8 @@
% \begin{macrocode}
\cs_new_protected:Npn \pdfannot_link_goto_begin:nw #1 %#1 destination
{
- \hook_use:n { pdfannot/link/GoTo/before}
+ \pdfdict_remove:nn { l_@@/link/GoTo} {Subtype}
+ \hook_use:n { pdfannot/link/GoTo/before} %the backend add it too
\mode_leave_vertical:
\exp_args:Nxx %xetex needs expansion
\__pdf_backend_link_begin_goto:nnw
@@ -537,6 +538,7 @@
}
{ #1 }
\bool_gset_true:N \g_@@_use_lastlink_bool
+ \pdfdict_put:nnn { l_@@/link/GoTo} {Subtype}{GoTo}
\hook_use:n { pdfannot/link/GoTo/begin}
}
More information about the latex3-commits
mailing list.