diff options
author | Karl Berry <karl@freefriends.org> | 2013-05-18 22:47:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-05-18 22:47:34 +0000 |
commit | 8da523330e61ea8e7b930c09cecaddec0b3a72a0 (patch) | |
tree | 07f156e733c33e3f416fa3de086bec250c693a25 /Master/texmf-dist/asymptote/graph.asy | |
parent | baff4255d94a765ab41d84c89ea23e44151770ee (diff) |
asymptote 2.22
git-svn-id: svn://tug.org/texlive/trunk@30566 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/graph.asy')
-rw-r--r-- | Master/texmf-dist/asymptote/graph.asy | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/asymptote/graph.asy b/Master/texmf-dist/asymptote/graph.asy index 410c59cf13a..c50a7a67b2c 100644 --- a/Master/texmf-dist/asymptote/graph.asy +++ b/Master/texmf-dist/asymptote/graph.asy @@ -235,8 +235,10 @@ ticklabel Format(string s=defaultformat) ticklabel OmitFormat(string s=defaultformat ... real[] x) { return new string(real v) { - int i=find(x == v); - return i < 0 ? format(s,v) : ""; + string V=format(s,v); + for(real a : x) + if(format(s,a) == V) return ""; + return V; }; } |