diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-12-30 19:47:30 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-12-30 19:47:30 +0100 |
commit | 9b1c3470a7a222ef9ae20106d750c4a0127819a7 (patch) | |
tree | 746f1a65eb69b87ea33e07ab4730540a8a8d50c9 /tex/context/base/mkxl/trac-vis.lmt | |
parent | cefe8d703dd66048fa9d259b697609bd539a7bce (diff) | |
download | context-9b1c3470a7a222ef9ae20106d750c4a0127819a7.tar.gz |
2021-12-30 19:03:00
Diffstat (limited to 'tex/context/base/mkxl/trac-vis.lmt')
-rw-r--r-- | tex/context/base/mkxl/trac-vis.lmt | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/trac-vis.lmt b/tex/context/base/mkxl/trac-vis.lmt index 7f9341722..e2c4133b4 100644 --- a/tex/context/base/mkxl/trac-vis.lmt +++ b/tex/context/base/mkxl/trac-vis.lmt @@ -292,7 +292,14 @@ local function setvisual(n,a,what,list) -- this will become more efficient when end function nuts.setvisual(n,mode) - setattr(n,a_visual,setvisual(mode,getattr(n,a_visual),true)) + if mode then + setattr(n,a_visual,setvisual(mode,getattr(n,a_visual),true)) + else + local a = texgetattribute(a_visual) + if a ~= unsetvalue then + setattr(n,a_visual,a) + end + end end function nuts.setvisuals(n,mode) -- currently the same @@ -792,7 +799,6 @@ local ruledbox do local getshift = nuts.getshift local getorientation = nuts.getorientation - local setorientation = nuts.setorientation setmetatableindex(o_cache,function(t,size) local rule = new_rule(2*size,size,size) @@ -808,7 +814,7 @@ local ruledbox do local wd, ht, dp = getwhd(current) local force_origin = wd == 0 or (dp + ht) == 0 local shift = getshift(current) -local orientation, xoffset, yoffset = getorientation(current) + local orientation, xoffset, yoffset = getorientation(current) local next = getnext(current) local prev = previous setboth(current) @@ -884,7 +890,6 @@ local orientation, xoffset, yoffset = getorientation(current) end info = new_hlist(info,wd,ht,dp,shift) end --- setorientation(info,orientation,xoffset,yoffset) if next then setlink(info,next) end |