[gimp/soc-2009-dynamics] Bug 167604 – gimp_gradient_get_color_at() may return out-of-bounds values



commit f843e590fdabdb11dabef6d2efa2f67abbef5a74
Author: Massimo Valentini <sixtysix inwind it>
Date:   Tue Jul 7 17:02:32 2009 +0200

    Bug 167604 â?? gimp_gradient_get_color_at() may return out-of-bounds values
    
    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/gradient-editor-commands.c b/app/actions/gradient-editor-commands.c
index 918cf84..5895e27 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]