summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/colo-ini.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-07-24 13:08:53 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-07-24 13:08:53 +0200
commit47852e5715e7c0374bb6bc173c1728908549e1ed (patch)
treee6df8c61ffb0aadfabbca7e9a33f10d1b61bde68 /tex/context/base/mkiv/colo-ini.lua
parenta92a8d40ce567ecf5b0baacd9a93a94aac9a4a2d (diff)
downloadcontext-47852e5715e7c0374bb6bc173c1728908549e1ed.tar.gz
2019-07-24 11:24:00
Diffstat (limited to 'tex/context/base/mkiv/colo-ini.lua')
-rw-r--r--tex/context/base/mkiv/colo-ini.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/colo-ini.lua b/tex/context/base/mkiv/colo-ini.lua
index 3c8d23abc..473427198 100644
--- a/tex/context/base/mkiv/colo-ini.lua
+++ b/tex/context/base/mkiv/colo-ini.lua
@@ -734,10 +734,13 @@ local function namedcolorattributes(name)
elseif color == true then
color = paletnamespace .. prefix .. name
end
- elseif valid[name] then
- color = name
else
- return space, l_color.black
+ color = valid[name]
+ if not color then
+ return space, l_color.black
+ elseif color == true then
+ color = name
+ end
end
color = counts[color]
if color then