summaryrefslogtreecommitdiff
path: root/tex/context/base/grph-inc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/grph-inc.lua')
-rw-r--r--tex/context/base/grph-inc.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tex/context/base/grph-inc.lua b/tex/context/base/grph-inc.lua
index 0fc40b38b..44447a7ad 100644
--- a/tex/context/base/grph-inc.lua
+++ b/tex/context/base/grph-inc.lua
@@ -667,7 +667,12 @@ function figures.includers.generic(data)
end
if figure then
local n = figures.boxnumber
- tex.box[n] = img.node(figure) -- img.write(figure)
+ tex.box[n] = node.hpack(img.node(figure))
+ -- tex.box[n] = img.node(figure) -- img.write(figure) -- assigning img.node directly no longer valid
+--~ local inode = img.node(figure)
+--~ print(table.serialize(nodes.totable(inode)))
+--~ tex.box[n] = inode
+--~ print(table.serialize(nodes.totable(tex.box[n])))
tex.wd[n], tex.ht[n], tex.dp[n] = figure.width, figure.height, 0 -- new, hm, tricky, we need to do that in tex (yet)
ds.objectnumber = figure.objnum
texsprint(ctxcatcodes,"\\relocateexternalfigure")