summaryrefslogtreecommitdiff
path: root/tex/context/base/chem-str.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/chem-str.lua')
-rw-r--r--tex/context/base/chem-str.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tex/context/base/chem-str.lua b/tex/context/base/chem-str.lua
index 8c154cc36..0ca82d2e1 100644
--- a/tex/context/base/chem-str.lua
+++ b/tex/context/base/chem-str.lua
@@ -577,7 +577,11 @@ function chemistry.stop()
if trace_metapost then
report_chemistry("metapost code:\n%s", mpcode)
end
+ if metapost.instance(chemistry.instance) then
+ t_initialize = ""
+ end
metapost.graphic(chemistry.instance,chemistry.format,mpcode,"","",t_initialize)
+ t_initialize = ""
metacode = nil
end