summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/base/graph.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/base/graph.asy')
-rw-r--r--Build/source/utils/asymptote/base/graph.asy6
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/base/graph.asy b/Build/source/utils/asymptote/base/graph.asy
index 410c59cf13a..c50a7a67b2c 100644
--- a/Build/source/utils/asymptote/base/graph.asy
+++ b/Build/source/utils/asymptote/base/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;
};
}