Skip to content

Commit

Permalink
Fully expand \current@color in all cases (fixes #510)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Jan 1, 2019
1 parent 162b15d commit 0103987
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions l3kernel/CHANGELOG.md
Expand Up @@ -14,6 +14,7 @@ this project uses date-based 'snapshot' version identifiers.
### Fixed

- Correct fp randint with zero argument (see #507)
- Handling of `\current@color` with (x)dvipdfmx` (see #510)

### Removed

Expand Down
6 changes: 3 additions & 3 deletions l3kernel/l3drivers.dtx
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
%% File: l3drivers.dtx Copyright(C) 2011-2018 The LaTeX3 Project
%% File: l3drivers.dtx Copyright(C) 2011-2019 The LaTeX3 Project
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
Expand Down Expand Up @@ -638,8 +638,8 @@
}
}
{
\exp_after:wN \@@_color_pickup:w
\current@color \q_stop #1
\exp_last_unbraced:Nx \@@_color_pickup:w
{ \current@color } \q_stop #1
}
}
\cs_new_protected:Npn \@@_color_pickup:w #1 ~ #2 \q_stop #3
Expand Down

0 comments on commit 0103987

Please sign in to comment.