From 9b042a93e8f489c694af2e2e121e5aedd7671d8a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 16 May 2010 18:38:18 +0000 Subject: asymptote 1.94 git-svn-id: svn://tug.org/texlive/trunk@18288 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/asymptote/plain_arcs.asy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Master/texmf/asymptote/plain_arcs.asy') diff --git a/Master/texmf/asymptote/plain_arcs.asy b/Master/texmf/asymptote/plain_arcs.asy index 01e750f42cd..140bc3cff19 100644 --- a/Master/texmf/asymptote/plain_arcs.asy +++ b/Master/texmf/asymptote/plain_arcs.asy @@ -23,8 +23,9 @@ path arc(pair c, explicit pair z1, explicit pair z2, bool direction=CCW) real t1=intersect(unitcircle,(0,0)--2*z1)[0]; real t2=intersect(unitcircle,(0,0)--2*z2)[0]; static int n=length(unitcircle); - if(t1 >= t2 && direction) t1 -= n; - if(t2 >= t1 && !direction) t2 -= n; + if(direction) { + if (t1 >= t2) t1 -= n; + } else if(t2 >= t1) t2 -= n; return shift(c)*scale(r)*subpath(unitcircle,t1,t2); } -- cgit v1.2.3