summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawclipend.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/drawclipend.h')
-rw-r--r--Build/source/utils/asymptote/drawclipend.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/Build/source/utils/asymptote/drawclipend.h b/Build/source/utils/asymptote/drawclipend.h
index 4b2d3260f2c..e86842d3d11 100644
--- a/Build/source/utils/asymptote/drawclipend.h
+++ b/Build/source/utils/asymptote/drawclipend.h
@@ -35,6 +35,8 @@ public:
bool endgroup() {return true;}
+ bool svg() {return true;}
+
void save(bool b) {
grestore=b;
if(partner) partner->save(b);
@@ -47,13 +49,10 @@ public:
bool write(texfile *out, const bbox& bpath) {
out->endgroup();
- if(out->toplevel()) {
- out->verbatimline(settings::endpicture(out->texengine));
- out->verbatim("\\kern");
- double width=bpath.right-bpath.left;
- out->write(-width*ps2tex);
- out->verbatimline("pt%");
- }
+
+ if(out->toplevel())
+ out->endpicture(bpath);
+
if(grestore) out->grestore();
return true;
}