diff --git a/ChangeLog b/ChangeLog index b98761bbdc..311f1e1811 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-08-29 Jakub Friedl + + * plug-ins/common/scatter_hsv.c: Calling randomize_value with + max value 359 instead of 360 to fix off by 1 error when wrapping + around. + 2007-08-29 Jakub Friedl * plug-ins/common/convmatrix.c: Removes the fprint function. diff --git a/plug-ins/common/scatter_hsv.c b/plug-ins/common/scatter_hsv.c index 207a04f8bd..ca187194f9 100644 --- a/plug-ins/common/scatter_hsv.c +++ b/plug-ins/common/scatter_hsv.c @@ -278,7 +278,7 @@ scatter_hsv_scatter (guchar *r, gimp_rgb_to_hsv_int (&h, &s, &v); if (VALS.hue_distance > 0) - h = randomize_value (h, 0, 360, TRUE, VALS.hue_distance); + h = randomize_value (h, 0, 359, TRUE, VALS.hue_distance); if (VALS.saturation_distance > 0) s = randomize_value (s, 0, 255, FALSE, VALS.saturation_distance);