[gimp] Bug 619131 - Attempting to flip FG/BG hard-edge gradient locks up GIMP



commit 649bd8f678de44154979c8cdbdd76c318e8b528a
Author: Michael Natterer <mitch gimp org>
Date:   Thu May 20 10:11:18 2010 +0200

    Bug 619131 - Attempting to flip FG/BG hard-edge gradient locks up GIMP
    
    Don't have the "prev" pointer of the right gradient segment point to
    itself, causing an infinite loop when iterating the gradient reversed.

 app/core/gimp-gradients.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimp-gradients.c b/app/core/gimp-gradients.c
index 07f3f1a..faf6fa0 100644
--- a/app/core/gimp-gradients.c
+++ b/app/core/gimp-gradients.c
@@ -75,7 +75,7 @@ gimp_gradients_init (Gimp *gimp)
   gradient->segments->left_color_type        = GIMP_GRADIENT_COLOR_FOREGROUND;
   gradient->segments->right_color_type       = GIMP_GRADIENT_COLOR_FOREGROUND;
   gradient->segments->next                   = gimp_gradient_segment_new ();
-  gradient->segments->next->prev             = gradient->segments->next;
+  gradient->segments->next->prev             = gradient->segments;
   gradient->segments->next->left             = 0.50;
   gradient->segments->next->middle           = 0.75;
   gradient->segments->next->right            = 1.00;



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