From 64ae1b600bef8c31423e959eb5f22935d6cdeac9 Mon Sep 17 00:00:00 2001 From: rodri Date: Tue, 12 May 2020 10:51:24 +0000 Subject: bsplines: can't make one without at least three points --- bsplines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsplines.c b/bsplines.c index 8abb53a..e9802ba 100644 --- a/bsplines.c +++ b/bsplines.c @@ -108,7 +108,7 @@ main(int argc, char *argv[]) redraw(); } if((e.mouse.buttons&4) != 0){ - if(npt > 1){ + if(npt > 2){ b.pts = pts; b.npt = npt; bsplines = realloc(bsplines, ++nbspline*sizeof(Bspline)); -- cgit v1.2.3