[gimp] Bug 768625: gimp-gradient-segment-range-move crashes...



commit 23d5944ef8fa9585dae7210ca344eeb473601541
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sun Jul 10 17:21:32 2016 +0200

    Bug 768625: gimp-gradient-segment-range-move crashes...
    
    
    ...GIMP invoked with end-segment < 0
    
    correct a typo

 app/core/gimpgradient.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpgradient.c b/app/core/gimpgradient.c
index 7935a6c..2c70515 100644
--- a/app/core/gimpgradient.c
+++ b/app/core/gimpgradient.c
@@ -1853,7 +1853,7 @@ gimp_gradient_segment_range_move (GimpGradient        *gradient,
 
   gimp_data_freeze (GIMP_DATA (gradient));
 
-  if (! range_l)
+  if (! range_r)
     range_r = gimp_gradient_segment_get_last (range_l);
 
   /* First or last segments in gradient? */


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