[gimp] app: fix offset handling in spiral gradients



commit 04280690b2d778fcd4ac753117eb6599ec24ab40
Author: Ell <ell_se yahoo com>
Date:   Fri Sep 27 16:05:41 2019 +0300

    app: fix offset handling in spiral gradients
    
    In gimp:gradient, properly scale the "offset" property in spiral
    graidnets.

 app/operations/gimpoperationgradient.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/app/operations/gimpoperationgradient.c b/app/operations/gimpoperationgradient.c
index 9bbc294e1b..2dbb74666d 100644
--- a/app/operations/gimpoperationgradient.c
+++ b/app/operations/gimpoperationgradient.c
@@ -777,6 +777,8 @@ gradient_calc_spiral_factor (gdouble   dist,
       gdouble ang;
       double  r;
 
+      offset = offset / 100.0;
+
       ang0 = atan2 (axis[0], axis[1]) + G_PI;
       ang1 = atan2 (x, y) + G_PI;
 


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