summaryrefslogtreecommitdiff
path: root/graphics/asymptote/runpicture.in
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/runpicture.in')
-rw-r--r--graphics/asymptote/runpicture.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/asymptote/runpicture.in b/graphics/asymptote/runpicture.in
index e782d2ed77..696e303ace 100644
--- a/graphics/asymptote/runpicture.in
+++ b/graphics/asymptote/runpicture.in
@@ -545,6 +545,7 @@ void deconstruct(picture *f, picture *preamble=NULL, transform T=identity)
}
bool clip=false;
if((*p)->begingroup()) {
+ string key=(*p)->KEY;
++level;
while(p != f->nodes.end() && level) {
if(!Delete) {
@@ -563,6 +564,8 @@ void deconstruct(picture *f, picture *preamble=NULL, transform T=identity)
fflush(pipeout);
error(nobegin);
}
+ if(level == 0)
+ (*p)->KEY=key;
}
}
}