diff options
Diffstat (limited to 'Master/texmf-dist/asymptote/plain.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/plain.asy | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Master/texmf-dist/asymptote/plain.asy b/Master/texmf-dist/asymptote/plain.asy index 3bb8cf7ce93..4afe3cb3de4 100644 --- a/Master/texmf-dist/asymptote/plain.asy +++ b/Master/texmf-dist/asymptote/plain.asy @@ -41,18 +41,19 @@ include plain_debugger; typedef void exitfcn(); -bool needshipout() { - return !shipped && !currentpicture.empty(); -} - void updatefunction() { + implicitshipout=true; if(!currentpicture.uptodate) shipout(); + implicitshipout=false; } void exitfunction() { - if(needshipout()) shipout(); + implicitshipout=true; + if(!currentpicture.empty()) + shipout(); + implicitshipout=false; } atupdate(updatefunction); @@ -273,7 +274,6 @@ if(settings.autoimport != "") { string s=settings.autoimport; settings.autoimport=""; eval("import \""+s+"\" as dummy",true); - shipped=false; atupdate(updatefunction); atexit(exitfunction); settings.autoimport=s; |