mirror of https://github.com/GNOME/gimp.git
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:
parent
86fa635ae5
commit
99a3d10783
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue