summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-02-03 09:05:36 +0100
committerMatthias Melcher <git@matthiasm.com>2019-02-03 09:05:36 +0100
commit6d021274d7de355ea0c42789d4366f3f3f5bd8e5 (patch)
tree72f7f80c48044cfbf6a49da0bc3c7b57b9792526
parent017754453e75446b1d1e2f390979f22f621c9e83 (diff)
Fixed bug introduced while removing shadow lint
-rw-r--r--src/fl_curve.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_curve.cxx b/src/fl_curve.cxx
index 73977af03..86d9c651a 100644
--- a/src/fl_curve.cxx
+++ b/src/fl_curve.cxx
@@ -85,7 +85,7 @@ void Fl_Graphics_Driver::curve(double X0, double Y0,
double dy2 = dy3 + 2*yb*e*e;
// draw points 1 .. n-2:
- for (int i=2; i<n; i++) {
+ for (int i=2; i<nSeg; i++) {
x += dx1;
dx1 += dx2;
dx2 += dx3;
@@ -95,7 +95,7 @@ void Fl_Graphics_Driver::curve(double X0, double Y0,
fl_transformed_vertex(x,y);
}
- // draw point n-1:
+ // draw point nSeg-1:
fl_transformed_vertex(x+dx1, y+dy1);
}