[latex3-commits] [git/LaTeX3-latex3-latex3] master: Defensive \global (ec0fc92)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Apr 12 11:11:10 CEST 2019
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/ec0fc9284dcc9f5fadd13b57f63ae3134ee534cc
>---------------------------------------------------------------
commit ec0fc9284dcc9f5fadd13b57f63ae3134ee534cc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Apr 12 10:11:10 2019 +0100
Defensive \global
Just in case this is done in a group ...
>---------------------------------------------------------------
ec0fc9284dcc9f5fadd13b57f63ae3134ee534cc
l3kernel/l3drivers-pdf.dtx | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3drivers-pdf.dtx b/l3kernel/l3drivers-pdf.dtx
index a34945c..b713073 100644
--- a/l3kernel/l3drivers-pdf.dtx
+++ b/l3kernel/l3drivers-pdf.dtx
@@ -615,17 +615,21 @@
{
\int_compare:nNnT \tex_luatexversion:D > { 106 }
{
- \tex_pdfvariable:D majorversion
+ \exp_not:N \tex_global:D \tex_pdfvariable:D majorversion
\exp_not:N \int_eval:n {#1} \scan_stop:
}
}
{
\cs_if_exist:NT \tex_pdfmajorversion:D
- { \tex_pdfmajorversion:D \exp_not:N \int_eval:n {#1} \scan_stop: }
+ {
+ \exp_not:N \tex_global:D \tex_pdfmajorversion:D
+ \exp_not:N \int_eval:n {#1} \scan_stop:
+ }
}
}
\cs_new_protected:Npx \driver_pdf_version_minor_gset:n #1
{
+ \exp_not:N \tex_global:D
\cs_if_exist:NTF \tex_pdfminorversion:D
{ \exp_not:N \tex_pdfminorversion:D }
{ \tex_pdfvariable:D minorversion }
More information about the latex3-commits
mailing list