summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/xypic/xypdf-co.tex')
-rw-r--r--Master/texmf-dist/tex/generic/xypic/xypdf-co.tex4
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex b/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
index 956c26f0206..e1bcd6b1ecb 100644
--- a/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
+++ b/Master/texmf-dist/tex/generic/xypic/xypdf-co.tex
@@ -81,6 +81,7 @@
\xP@newcolor\xP@colorname{\xP@colA,\xP@colB,\xP@colC,\xP@colD}{cmyk}\newxycolor
\else
\PackageError{xypdf}{Syntax error in \string\newxycolor}{}\fi
+\fi
}
\newcommand*\xP@gray{gray}
\newcommand*\xP@rgb{rgb}
@@ -92,8 +93,7 @@
\else\expandafter\addtotoks@\expandafter{\nextii@}\DN@{\xyFN@\OBJECT@}\fi \next@}
\newcommand*\xP@checkcolor[1]{\@ifundefined{\string\color@\detokenize{#1}}{\OBJECT@shapei[#1]}{\xP@append\toks@{\noexpand\xP@color{{\detokenize{#1}}}}\xyFN@\OBJECT@
}}
-\newcommand*\xP@color[1]{\def\preStyle@@{\styletoks@{\xP@protectedcolor#1}}\let\postStyle@@\@empty
-\modXYstyle@
+\newcommand*\xP@color[1]{\def\preStyle@@{\addtostyletoks@{\bgroup\xP@protectedcolor#1}}\def\postStyle@@{\addtostyletoks@{\egroup}}\modXYstyle@
}
\@ifdefinable\xP@protectedcolor\relax
\protected\def\xP@protectedcolor{\@ifundefined{color}\xP@pdfcolor\color