diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-08-19 13:10:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-08-19 13:10:04 +0200 |
commit | 7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3 (patch) | |
tree | 8a2e1e9bfba18c3ee1897eda50f76f4726bdd108 /tex/context/base/mkiv/grph-rul.lua | |
parent | 0fcb576f359edfdd50c2b13615a03b966a9073df (diff) | |
download | context-7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3.tar.gz |
2018-08-19 13:00:00
Diffstat (limited to 'tex/context/base/mkiv/grph-rul.lua')
-rw-r--r-- | tex/context/base/mkiv/grph-rul.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tex/context/base/mkiv/grph-rul.lua b/tex/context/base/mkiv/grph-rul.lua index 71f1f868c..809854986 100644 --- a/tex/context/base/mkiv/grph-rul.lua +++ b/tex/context/base/mkiv/grph-rul.lua @@ -12,13 +12,12 @@ local attributes = attributes local nodes = nodes local context = context +local nuts = nodes.nuts local ruleactions = nodes.rules.ruleactions -local userrule = nodes.rules.userrule +local userrule = nuts.rules.userrule local bpfactor = number.dimenfactors.bp -local current_attr = nodes.current_attr -local setfield = nodes.setfield - +local setattrlist = nuts.setattrlist local getattribute = tex.getattribute local a_color = attributes.private('color') @@ -232,7 +231,7 @@ interfaces.implement { local ma = getattribute(a_colormodel) or 1 local ca = getattribute(a_color) local ta = getattribute(a_transparency) - setfield(rule,"attr",current_attr()) + setattrlist(rule,true) if t.type == "mp" then t.ma = ma t.ca = ca @@ -242,7 +241,7 @@ interfaces.implement { rule[a_color] = ca rule[a_transparency] = ta end - context(rule) + context(tonode(rule)) end } @@ -269,8 +268,8 @@ interfaces.implement { type = "mp", name = t.name, } - setfield(rule,"attr",current_attr()) - context(rule) + setattrlist(rule,true) + context(tonode(rule)) end } |