[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: don't assume that a level is set (8529cf0)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Nov 19 14:52:06 CET 2022


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/8529cf0631934b39bc4e0afa31e2e8a1817a6627

>---------------------------------------------------------------

commit 8529cf0631934b39bc4e0afa31e2e8a1817a6627
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Nov 19 14:52:06 2022 +0100

    don't assume that a level is set


>---------------------------------------------------------------

8529cf0631934b39bc4e0afa31e2e8a1817a6627
 l3pdfmeta.dtx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3pdfmeta.dtx b/l3pdfmeta.dtx
index 454d336..2a46d97 100644
--- a/l3pdfmeta.dtx
+++ b/l3pdfmeta.dtx
@@ -2192,7 +2192,7 @@
     \@@_xmp_add_packet_line:nne {pdfaid}{part}{\pdfmeta_standard_item:n{level}}
     \@@_xmp_add_packet_line:nne
       {pdfaid}{conformance}{\pdfmeta_standard_item:n{conformance}}  
-    \int_compare:nNnTF {\pdfmeta_standard_item:n{level}}<{4}  
+    \int_compare:nNnTF {0\pdfmeta_standard_item:n{level}}<{4}  
      {\@@_xmp_add_packet_line:nne {pdfaid}{year} {\pdfmeta_standard_item:n{year}}}
      {\@@_xmp_add_packet_line:nne {pdfaid}{rev}  {\pdfmeta_standard_item:n{year}}}
     \@@_xmp_add_packet_line:nne





More information about the latex3-commits mailing list.