Skip to content

Commit

Permalink
Correct init. code for ICCbased spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Oct 18, 2021
1 parent 2582df4 commit 4ab3caa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions l3backend/l3backend-color.dtx
Expand Up @@ -1001,11 +1001,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 }
{
Expand All @@ -1017,11 +1017,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}
Expand Down
4 changes: 2 additions & 2 deletions l3kernel/l3color.dtx
Expand Up @@ -2576,8 +2576,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}
Expand Down

0 comments on commit 4ab3caa

Please sign in to comment.