From 51a31ade2985d258e3090e86c453065a8e42dc0c Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Fri, 30 Jul 2004 14:38:11 +0000 Subject: [PATCH] corrected a typo causing mayhem in previews of non-alpha grayscale images. * libgimpwidgets/gimppreviewarea.c (gimp_preview_area_draw): corrected a typo causing mayhem in previews of non-alpha grayscale images. Fixes bug #148873. (as reported by DindinX) --- ChangeLog | 6 ++++++ libgimpwidgets/gimppreviewarea.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 974fafba1f..1a888b070e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-07-29 Shlomi Fish + + * libgimpwidgets/gimppreviewarea.c (gimp_preview_area_draw): corrected a + typo causing mayhem in previews of non-alpha grayscale images. + Fixes bug #148873. + 2004-07-30 Sven Neumann * plug-ins/common/ccanalyze.c (fillPreview): optimized preview diff --git a/libgimpwidgets/gimppreviewarea.c b/libgimpwidgets/gimppreviewarea.c index 9d787ed07c..6f86bb20ec 100644 --- a/libgimpwidgets/gimppreviewarea.c +++ b/libgimpwidgets/gimppreviewarea.c @@ -345,7 +345,7 @@ gimp_preview_area_draw (GimpPreviewArea *area, for (col = 0; col < width; col++, s++, d += 3) { - d[0] = d[1] = d[3] = s[0]; + d[0] = d[1] = d[2] = s[0]; } src += rowstride;