[latex3-commits] [git/LaTeX3-latex3-latex3] icc: Correct init. code for ICCbased spaces (972dd1763)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Feb 22 16:25:30 CET 2021
Repository : https://github.com/latex3/latex3
On branch : icc
Link : https://github.com/latex3/latex3/commit/972dd1763a9cf039482f3a86e6e3a235e54b60dc
>---------------------------------------------------------------
commit 972dd1763a9cf039482f3a86e6e3a235e54b60dc
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Feb 22 15:25:30 2021 +0000
Correct init. code for ICCbased spaces
>---------------------------------------------------------------
972dd1763a9cf039482f3a86e6e3a235e54b60dc
l3backend/l3backend-color.dtx | 14 +++++++++-----
l3kernel/l3color.dtx | 4 ++--
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index 1852b5f5b..eec4ff84b 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -932,11 +932,11 @@
% \end{macro}
% \end{macro}
%
-% \begin{macro}{\@@_backend_iccbased_init:nnn}
+% \begin{macro}{\@@_backend_iccbased_init:nn}
% Lots of data to save here: we only want to do that once per file,
% so track it by name.
% \begin{macrocode}
-\cs_new_protected:Npn \@@_backend_iccbased_init:nnn #1#2#3
+\cs_new_protected:Npn \@@_backend_iccbased_init:nn #1#2
{
\pdf_object_if_exist:nF { @@_icc_ #1 }
{
@@ -948,11 +948,15 @@
}
}
\pdf_object_unnamed_write:nx { array }
- { /ICCBased~ \pdf_object_ref:n { @@_icc_ #1 } }
+ { /ICCBased ~ \pdf_object_ref:n { @@_icc_ #1 } }
\cs_if_exist:NT \pdfmanagement_add:nnn
{
- \pdfmanagement_add:nnx { Page / Resources / ColorSpace }
- {#3} { ~ \pdf_object_ref_last: }
+ \use:x
+ {
+ \pdfmanagement_add:nnn { Page / Resources / ColorSpace }
+ { color \int_use:N \g_@@_model_int }
+ { ~ \pdf_object_ref_last: }
+ }
}
}
% \end{macrocode}
diff --git a/l3kernel/l3color.dtx b/l3kernel/l3color.dtx
index 8bfff099e..8ff5bed9b 100644
--- a/l3kernel/l3color.dtx
+++ b/l3kernel/l3color.dtx
@@ -2548,8 +2548,8 @@
{
\@@_model_init:nnn {#2} {#1} { iccbased }
\use:c { @@_model_devicen_parse_ #1 :nn } {#2} {#1}
- \exp_args:Nx \@@_backend_devicen_init:nnn
- { \file_full_name:n {#3} } {#1} {#2}
+ \exp_args:Nx \@@_backend_iccbased_init:nn
+ { \file_full_name:n {#3} } {#1}
}
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list.