diff options
Diffstat (limited to 'Build/source/utils/asymptote/drawclipbegin.h')
-rw-r--r-- | Build/source/utils/asymptote/drawclipbegin.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/drawclipbegin.h b/Build/source/utils/asymptote/drawclipbegin.h index 5bc2d1f7c37..55862b35c23 100644 --- a/Build/source/utils/asymptote/drawclipbegin.h +++ b/Build/source/utils/asymptote/drawclipbegin.h @@ -58,14 +58,16 @@ public: if(gsave) out->gsave(); if(empty()) return true; - 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(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(")%"); + } out->beginspecial(); out->beginraw(); |