From 04280690b2d778fcd4ac753117eb6599ec24ab40 Mon Sep 17 00:00:00 2001 From: Ell Date: Fri, 27 Sep 2019 16:05:41 +0300 Subject: [PATCH] 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;