app: fix total weight calc. of hardness convolution kernel

This commit is contained in:
Ell 2017-04-08 07:37:28 -04:00
parent 670be1f880
commit 5255d91032
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ gimp_brush_transform_blur (GimpTempBuf *buf,
gint rh = MIN (r, height - 1);
gfloat n = 2 * r + 1;
gfloat n_r = n * r;
gfloat weight = (n * n / 2) * (n * n / 2 + 1);
gfloat weight = floor (n * n / 2) * (floor (n * n / 2) + 1);
gfloat weight_inv = 1 / weight;
gint x;
gint y;