Decrement sample size just like in the gradients_sample_uniform case

This commit is contained in:
Mukund Sivaraman 2010-10-15 22:27:01 +05:30
parent bec9e4b4ea
commit 675a9c3950
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);