From 38aaa5ab119dae8bf21971e84c7742b2bfc591a5 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Thu, 25 Aug 2022 03:01:33 +0000
Subject: CTAN sync 202208250301

---
 .../contrib/pdfmanagement-testphase/color-ltx.sty  | 33 +++++++++-------------
 1 file changed, 13 insertions(+), 20 deletions(-)

(limited to 'macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty')

diff --git a/macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty b/macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty
index 6873467166..7400b4be95 100644
--- a/macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty
+++ b/macros/latex/contrib/pdfmanagement-testphase/color-ltx.sty
@@ -24,7 +24,7 @@
 %% This file has the LPPL maintenance status "maintained".
 %%
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{color-ltx}[2022-07-08 v0.95q
+\ProvidesPackage{color-ltx}[2022-08-24 v0.95r
   Standard LaTeX Color (patched for l3color, part of pdfmanagement-testphase, original version 2022/01/06 v1.3d) (DPC)]
 \edef\Gin@codes{%
  \catcode`\noexpand\^^A\the\catcode`\^^A\relax
@@ -136,25 +136,18 @@
       \c@lor@usename{#2}}}}
 \@onlypreamble\DefineNamedColor
 \protected\def\@expl@color@set@@nnn#1#2#3{}
-\ifdefined\ExplSyntaxOn
-  \ExplSyntaxOn
-  \cs_gset_protected:Npn \@expl@color@set@@nnn #1 #2 #3
-   {
-    \cs_if_exist:NT \color_set:nnn
-      { \cs_if_exist:cTF { __color_parse_model_ #2 :w }
-         {
-          \color_set:nnn {#1}{#2}{#3}
-         }
-         { %for dvi mode
-          \tl_if_eq:nnT{#2}{named}
-           {
-             \color_set:nn{#1}{#3}
-           }
-         }
-     }
-   }
-  \ExplSyntaxOff
-\fi
+\ExplSyntaxOn
+\cs_set_protected:Npn \@expl@color@set@@nnn #1 #2 #3
+  {
+   \str_if_eq:nnTF {#2}{named}
+    {
+      \color_set:nn {#1}{#3}
+    }
+    {
+      \color_set:nnn {#1}{#2}{#3}
+    }
+  }
+\ExplSyntaxOff
 \newif\ifcolors@
 \colors@true
 \def\c@lor@special#1#2{%
-- 
cgit v1.2.3

