summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mpxl/mp-grph.mpxl2
1 files changed, 2 insertions, 0 deletions
diff --git a/metapost/context/base/mpxl/mp-grph.mpxl b/metapost/context/base/mpxl/mp-grph.mpxl
index 4826e4540..8517293aa 100644
--- a/metapost/context/base/mpxl/mp-grph.mpxl
+++ b/metapost/context/base/mpxl/mp-grph.mpxl
@@ -84,6 +84,7 @@ def loadfigure primary filename =
enddef ;
def mfun_load_figure (expr filename) text figureattributes =
+ mutable beginfig, endfig ;
begingroup ;
save figurenumber, figurepicture, number, fixedplace ;
numeric figurenumber ; figurenumber := 0 ;
@@ -114,6 +115,7 @@ def mfun_load_figure (expr filename) text figureattributes =
addto figurepicture also currentpicture figureattributes ;
currentpicture := figurepicture ;
endgroup ;
+ permanent beginfig, endfig ;
enddef ;
% We only use the new method now.