summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/graph.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/graph.asy')
-rw-r--r--Master/texmf-dist/asymptote/graph.asy1
1 files changed, 1 insertions, 0 deletions
diff --git a/Master/texmf-dist/asymptote/graph.asy b/Master/texmf-dist/asymptote/graph.asy
index c50a7a67b2c..7498ce8bfdd 100644
--- a/Master/texmf-dist/asymptote/graph.asy
+++ b/Master/texmf-dist/asymptote/graph.asy
@@ -657,6 +657,7 @@ tickvalues generateticks(int sign, Label F="", ticklabel ticklabel=null,
}
if(calcStep) {
+ if(N == 1) N=2;
if(N == 0) N=(int) (len/Step);
else Step=len/N;
}