diff options
author | Marius <mariausol@gmail.com> | 2012-05-05 12:00:16 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-05-05 12:00:16 +0300 |
commit | b8bc4fc22157f43c15f40d784ab05bdd30c93c44 (patch) | |
tree | f096b894c12456009b4c8b63ade35013c6751960 /tex/context/base/mlib-pdf.lua | |
parent | e80abdc4f40ec9a4bc9f5faad4d86f8dbf19f96f (diff) | |
download | context-b8bc4fc22157f43c15f40d784ab05bdd30c93c44.tar.gz |
beta 2012.05.05 10:42
Diffstat (limited to 'tex/context/base/mlib-pdf.lua')
-rw-r--r-- | tex/context/base/mlib-pdf.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/mlib-pdf.lua b/tex/context/base/mlib-pdf.lua index deac9d51a..7a23ba947 100644 --- a/tex/context/base/mlib-pdf.lua +++ b/tex/context/base/mlib-pdf.lua @@ -276,6 +276,7 @@ function metapost.flush(result,flusher,askedfig) flusher = flusher or metapost.flushers.pdf local resetplugins = metapost.resetplugins or ignore -- before figure local processplugins = metapost.processplugins or ignore -- each object + local synchronizeplugins = metapost.synchronizeplugins or ignore local pluginactions = metapost.pluginactions or ignore -- before / after local startfigure = flusher.startfigure local stopfigure = flusher.stopfigure @@ -302,8 +303,7 @@ function metapost.flush(result,flusher,askedfig) startfigure(fignum,llx,lly,urx,ury,"begin",figure) t[#t+1] = "q" if objects then - resetplugins() -- we should move the colorinitializer here - t[#t+1] = metapost.colorinitializer() + resetplugins(t) -- we should move the colorinitializer here for o=1,#objects do local object = objects[o] local objecttype = object.type @@ -327,6 +327,9 @@ function metapost.flush(result,flusher,askedfig) else -- we use an indirect table as we want to overload -- entries but this is not possible in userdata + -- + -- can be optimized if no path + -- local original = object local object = { } setmetatable(object, { |