summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/modules/mkiv/m-chart.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/modules/mkiv/m-chart.lua')
-rw-r--r--Master/texmf-dist/tex/context/modules/mkiv/m-chart.lua17
1 files changed, 5 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/context/modules/mkiv/m-chart.lua b/Master/texmf-dist/tex/context/modules/mkiv/m-chart.lua
index cde563fb3af..bcf80bdfc9a 100644
--- a/Master/texmf-dist/tex/context/modules/mkiv/m-chart.lua
+++ b/Master/texmf-dist/tex/context/modules/mkiv/m-chart.lua
@@ -926,16 +926,18 @@ local function getchart(settings,forced_x,forced_y,forced_nx,forced_ny)
return chart
end
-local function makechart_indeed(chart)
+local function makechart(chart)
local settings = chart.settings
local chartsettings = settings.chart
--
+ context.begingroup()
+ context.forgetall()
+ --
local g = ctx_startgraphic {
instance = "metafun",
format = "metafun",
method = "scaled",
definitions = "",
- wrapped = true,
}
--
ctx_tographic(g,"if unknown context_flow : input mp-char.mpiv ; fi ;")
@@ -1010,16 +1012,7 @@ local function makechart_indeed(chart)
ctx_tographic(g,"flow_end_chart ;")
ctx_stopgraphic(g)
--
-end
-
--- We need to wrap because of tex.runtoks!
-
-local function makechart(chart)
- context.hbox()
- context.bgroup()
- context.forgetall()
- context(function() makechart_indeed(chart) end)
- context.egroup()
+ context.endgroup()
end
local function splitchart(chart)