[gimp] Issue #6994: Color Noise produces artifacts with highly saturated…
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #6994: Color Noise produces artifacts with highly saturated…
- Date: Sat, 17 Jul 2021 17:02:50 +0000 (UTC)
commit 3b3f34cd223cd47fabd7d913529dcb4aa98bff56
Author: Michael McLaughlin <michael thecurate com>
Date: Sat Jul 17 18:58:16 2021 +0200
Issue #6994: Color Noise produces artifacts with highly saturated…
… source colors
Reviewer's (Jehan) note: a git blame shows this is a clear bug
introduced in commit 9d19bf2a3e4, which was a cleanup patch, and the
BOUNDS() macro was not doing exactly the same thing as the code before
the change.
plug-ins/gimpressionist/repaint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/gimpressionist/repaint.c b/plug-ins/gimpressionist/repaint.c
index 745875696a..74bca6ae7f 100644
--- a/plug-ins/gimpressionist/repaint.c
+++ b/plug-ins/gimpressionist/repaint.c
@@ -1035,7 +1035,7 @@ repaint (ppm_t *p, ppm_t *a)
if (runningvals.color_noise > 0.0)
{
double v = runningvals.color_noise;
-#define BOUNDS(a) (((a) < 0) ? (a) : ((a) > 255) ? 255 : (a))
+#define BOUNDS(a) (((a) < 0) ? (0) : ((a) > 255) ? 255 : (a))
#define MYASSIGN(a) \
{ \
a = a + g_rand_double_range (random_generator, -v/2.0, v/2.0); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]