summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/flatguide.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-09 00:26:15 +0000
committerKarl Berry <karl@freefriends.org>2010-05-09 00:26:15 +0000
commit0114fbc0beecd9a094b260d78cccdc6ff3e85f1e (patch)
tree53f68a7eb4cd90f611560e9b477b55c671b94717 /Build/source/utils/asymptote/flatguide.cc
parent539c0d5c885fa1c451a55ef8e7e1a2bbf1a32861 (diff)
asy 1.94
git-svn-id: svn://tug.org/texlive/trunk@18161 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/flatguide.cc')
-rw-r--r--Build/source/utils/asymptote/flatguide.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/flatguide.cc b/Build/source/utils/asymptote/flatguide.cc
index bfc26dfd041..1bbf375593d 100644
--- a/Build/source/utils/asymptote/flatguide.cc
+++ b/Build/source/utils/asymptote/flatguide.cc
@@ -28,6 +28,10 @@ void flatguide::uncheckedAdd(path p, bool allowsolve)
{
Int n=p.length();
if(n < 0) return;
+ if(n == 0) {
+ addPoint(p,0);
+ return;
+ }
int nminus1=n-1;
if(!allowsolve && p.cyclic()) addPre(p,0);
for(Int i=0; i < nminus1;) {