diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-08-20 18:19:40 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-08-20 18:19:40 +0200 |
commit | eac3559b6b0ef831294368a3a835070ecd7c44fc (patch) | |
tree | 1345e7e40d4311cb2667874f22b5701b6fc25ee7 /tex/context/base/mkiv/grph-rul.lua | |
parent | 7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3 (diff) | |
download | context-eac3559b6b0ef831294368a3a835070ecd7c44fc.tar.gz |
2018-08-20 17:54:00
Diffstat (limited to 'tex/context/base/mkiv/grph-rul.lua')
-rw-r--r-- | tex/context/base/mkiv/grph-rul.lua | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tex/context/base/mkiv/grph-rul.lua b/tex/context/base/mkiv/grph-rul.lua index 809854986..b30ed21cd 100644 --- a/tex/context/base/mkiv/grph-rul.lua +++ b/tex/context/base/mkiv/grph-rul.lua @@ -12,12 +12,16 @@ local attributes = attributes local nodes = nodes local context = context +local bpfactor = number.dimenfactors.bp + local nuts = nodes.nuts -local ruleactions = nodes.rules.ruleactions local userrule = nuts.rules.userrule -local bpfactor = number.dimenfactors.bp +local ruleactions = nuts.rules.ruleactions local setattrlist = nuts.setattrlist +local setattr = nuts.setattr +local tonode = nuts.tonode + local getattribute = tex.getattribute local a_color = attributes.private('color') @@ -237,11 +241,11 @@ interfaces.implement { t.ca = ca t.ta = ta else - rule[a_colormodel] = ma - rule[a_color] = ca - rule[a_transparency] = ta + setattr(rule,a_colormodel,ma) + setattr(rule,a_color,ca) + setattr(rule,a_transparency,ta) end - context(tonode(rule)) + context(tonode(rule)) -- will become context.nodes.flush end } |