summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawclipbegin.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-28 23:56:03 +0000
committerKarl Berry <karl@freefriends.org>2009-05-28 23:56:03 +0000
commite767448d0591f5dbb0cd485e4b014becdcbd1ba4 (patch)
tree83bec5bd1ee117130f3e9dcee985dcd42f5145d9 /Build/source/utils/asymptote/drawclipbegin.h
parent20751a51df382b884807d8b9ef1ff7f7cc7739a5 (diff)
asymptote 1.74
git-svn-id: svn://tug.org/texlive/trunk@13514 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/drawclipbegin.h')
-rw-r--r--Build/source/utils/asymptote/drawclipbegin.h18
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();