copy the positions of the control points for a smooth curve into the

2004-01-07  Simon Budig  <simon@gimp.org>

	* app/base/curves.c: copy the positions of the control points
	for a smooth curve into the lookup table, after the points
	inbetween have been interpolated. This ensures that the
	positions of the control points always get respected.

	Fixes bug #35335.
This commit is contained in:
Simon Budig 2004-01-07 22:47:25 +00:00 committed by Simon Budig
parent 86fa635ae5
commit 99a3d10783
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2004-01-07 Simon Budig <simon@gimp.org>
* app/base/curves.c: copy the positions of the control points
for a smooth curve into the lookup table, after the points
inbetween have been interpolated. This ensures that the
positions of the control points always get respected.
Fixes bug #35335.
2004-01-07 Henrik Brix Andersen <brix@gimp.org>
* app/core/gimpimage-contiguous-region.c

View File

@ -139,6 +139,17 @@ curves_calculate_curve (Curves *curves,
curves_plot_curve (curves, channel, p1, p2, p3, p4);
}
/* ensure that the control points are used exactly */
for (i = 0; i < num_pts; i++)
{
gint x, y;
x = curves->points[channel][points[i]][0];
y = curves->points[channel][points[i]][1];
curves->curve[channel][x] = y;
}
break;
}
}