aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2020-05-12 10:51:24 +0000
committerrodri <rgl@antares-labs.eu>2020-05-12 10:51:24 +0000
commit64ae1b600bef8c31423e959eb5f22935d6cdeac9 (patch)
treec1c0d476311fb0aaf13e494c2eb24e8c12aee9a8
parentb3822385045bb11446f479afb67733ff21c77823 (diff)
downloadetoys-64ae1b600bef8c31423e959eb5f22935d6cdeac9.tar.gz
etoys-64ae1b600bef8c31423e959eb5f22935d6cdeac9.tar.bz2
etoys-64ae1b600bef8c31423e959eb5f22935d6cdeac9.zip
bsplines: can't make one without at least three points
-rw-r--r--bsplines.c2
1 files changed, 1 insertions, 1 deletions
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));