summaryrefslogtreecommitdiff
path: root/tex/context/base/attr-col.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-03-25 19:20:25 +0200
committerMarius <mariausol@gmail.com>2011-03-25 19:20:25 +0200
commit1455dd60b68c9140db1b9977c9e5ce372b772ec8 (patch)
treed2b7060a4d9891966a056dcf143ef20d43390561 /tex/context/base/attr-col.lua
parent2a9554684f61df8db63dec6d4e874f49b25a212b (diff)
downloadcontext-1455dd60b68c9140db1b9977c9e5ce372b772ec8.tar.gz
beta 2011.03.25 18:03
Diffstat (limited to 'tex/context/base/attr-col.lua')
-rw-r--r--tex/context/base/attr-col.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/tex/context/base/attr-col.lua b/tex/context/base/attr-col.lua
index fd69fb682..acabe62ac 100644
--- a/tex/context/base/attr-col.lua
+++ b/tex/context/base/attr-col.lua
@@ -269,17 +269,17 @@ local function reviver(data,n)
d = { gray, gray, gray, gray }
report_attributes("unable to revive color %s",n or "?")
else
- local kind = colors.forcedmodel(v[1])
- if kind == 2 then
+ local model = colors.forcedmodel(v[1])
+ if model == 2 then
local gray= graycolor(v[2])
d = { gray, gray, gray, gray }
- elseif kind == 3 then
+ elseif model == 3 then
local gray, rgb, cmyk = graycolor(v[2]), rgbcolor(v[3],v[4],v[5]), cmykcolor(v[6],v[7],v[8],v[9])
d = { rgb, gray, rgb, cmyk }
- elseif kind == 4 then
+ elseif model == 4 then
local gray, rgb, cmyk = graycolor(v[2]), rgbcolor(v[3],v[4],v[5]), cmykcolor(v[6],v[7],v[8],v[9])
d = { cmyk, gray, rgb, cmyk }
- elseif kind == 5 then
+ elseif model == 5 then
local spot = spotcolor(v[10],v[11],v[12],v[13])
-- d = { spot, gray, rgb, cmyk }
d = { spot, spot, spot, spot }