summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawclipbegin.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/drawclipbegin.h')
-rw-r--r--Build/source/utils/asymptote/drawclipbegin.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/drawclipbegin.h b/Build/source/utils/asymptote/drawclipbegin.h
index 55862b35c23..cba0acc9a15 100644
--- a/Build/source/utils/asymptote/drawclipbegin.h
+++ b/Build/source/utils/asymptote/drawclipbegin.h
@@ -58,16 +58,20 @@ public:
if(gsave) out->gsave();
if(empty()) return true;
- if(!settings::context(out->texengine)) {
+ if(out->toplevel()) {
out->verbatim(settings::beginpicture(out->texengine));
- out->verbatim("(");
- double width=bpath.right-bpath.left;
- double height=bpath.top-bpath.bottom;
- out->write(width*ps2tex);
- out->verbatim(",");
- out->write(height*ps2tex);
- out->verbatimline(")%");
+ if(!settings::context(out->texengine)) {
+ out->verbatim("(");
+ double width=bpath.right-bpath.left;
+ double height=bpath.top-bpath.bottom;
+ out->write(width*ps2tex);
+ out->verbatim(",");
+ out->write(height*ps2tex);
+ out->verbatim(")");
+ }
+ out->verbatimline("%");
}
+ out->begingroup();
out->beginspecial();
out->beginraw();