summaryrefslogtreecommitdiff
path: root/Master/texmf/asymptote/animation.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/asymptote/animation.asy')
-rw-r--r--Master/texmf/asymptote/animation.asy3
1 files changed, 1 insertions, 2 deletions
diff --git a/Master/texmf/asymptote/animation.asy b/Master/texmf/asymptote/animation.asy
index 27f7171a639..582b32bced4 100644
--- a/Master/texmf/asymptote/animation.asy
+++ b/Master/texmf/asymptote/animation.asy
@@ -33,8 +33,7 @@ struct animation {
// been generated.
void operator init(string prefix="", bool global=true) {
- prefix=replace((prefix == "") ? outprefix() : stripdirectory(prefix),
- " ","_");
+ prefix=replace(stripdirectory(outprefix(prefix))," ","_");
this.prefix=prefix;
this.global=global;
}