diff options
author | rodri <rgl@antares-labs.eu> | 2020-05-12 10:51:24 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2020-05-12 10:51:24 +0000 |
commit | 64ae1b600bef8c31423e959eb5f22935d6cdeac9 (patch) | |
tree | c1c0d476311fb0aaf13e494c2eb24e8c12aee9a8 | |
parent | b3822385045bb11446f479afb67733ff21c77823 (diff) | |
download | etoys-64ae1b600bef8c31423e959eb5f22935d6cdeac9.tar.gz etoys-64ae1b600bef8c31423e959eb5f22935d6cdeac9.tar.bz2 etoys-64ae1b600bef8c31423e959eb5f22935d6cdeac9.zip |
bsplines: can't make one without at least three points
-rw-r--r-- | bsplines.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |