mirror of https://github.com/GNOME/gimp.git
Decrement sample size just like in the gradients_sample_uniform case
This commit is contained in:
parent
bec9e4b4ea
commit
675a9c3950
|
@ -254,7 +254,7 @@ gradients_get_gradient_data_invoker (GimpProcedure *procedure,
|
|||
|
||||
pv = grad_data;
|
||||
|
||||
while (sample_size)
|
||||
while (sample_size--)
|
||||
{
|
||||
seg = gimp_gradient_get_color_at (gradient, context, seg,
|
||||
pos, reverse, &color);
|
||||
|
|
|
@ -224,7 +224,7 @@ sub gradients_get_gradient_data {
|
|||
|
||||
pv = grad_data;
|
||||
|
||||
while (sample_size)
|
||||
while (sample_size--)
|
||||
{
|
||||
seg = gimp_gradient_get_color_at (gradient, context, seg,
|
||||
pos, reverse, &color);
|
||||
|
|
Loading…
Reference in New Issue