From f843e590fdabdb11dabef6d2efa2f67abbef5a74 Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Tue, 7 Jul 2009 17:02:32 +0200 Subject: [PATCH] =?UTF-8?q?Bug=20167604=20=E2=80=93=20gimp=5Fgradient=5Fge?= =?UTF-8?q?t=5Fcolor=5Fat()=20may=20return=20out-of-bounds=20values?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is not a problem of gimp_gradient_get_color_at(), but a typo in gradient_editor_right_color_update(). --- app/actions/gradient-editor-commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions/gradient-editor-commands.c b/app/actions/gradient-editor-commands.c index 918cf8421a..5895e279cf 100644 --- a/app/actions/gradient-editor-commands.c +++ b/app/actions/gradient-editor-commands.c @@ -772,7 +772,7 @@ gradient_editor_right_color_update (GimpColorDialog *dialog, gimp_gradient_segment_range_blend (gradient, editor->control_sel_l, editor->control_sel_r, - &editor->control_sel_r->left_color, + &editor->control_sel_l->left_color, color, TRUE, TRUE); break; @@ -781,7 +781,7 @@ gradient_editor_right_color_update (GimpColorDialog *dialog, gimp_gradient_segment_range_blend (gradient, editor->control_sel_l, editor->control_sel_r, - &editor->control_sel_r->left_color, + &editor->control_sel_l->left_color, color, TRUE, TRUE); gimp_gradient_segments_free (editor->right_saved_segments);