app: fix offset handling in spiral gradients

In gimp:gradient, properly scale the "offset" property in spiral
graidnets.
This commit is contained in:
Ell 2019-09-27 16:05:41 +03:00
parent 2e18a91916
commit 04280690b2
1 changed files with 2 additions and 0 deletions

View File

@ -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;