diff --git a/app/core/gimpbrush-transform.c b/app/core/gimpbrush-transform.c index 4d9d4cbb9f..f8e9335f8e 100644 --- a/app/core/gimpbrush-transform.c +++ b/app/core/gimpbrush-transform.c @@ -67,6 +67,11 @@ gimp_brush_real_transform_size (GimpBrush *brush, scale, scale / aspect_ratio, angle, &matrix); gimp_brush_transform_bounding_box (brush, &matrix, &x, &y, width, height); + + /*Transform size can not be less than 1 px*/ + width = MAX(1, width); + height = MAX(1, height); + } /* diff --git a/app/core/gimpbrush.c b/app/core/gimpbrush.c index 8a7dc83039..14f1674df0 100644 --- a/app/core/gimpbrush.c +++ b/app/core/gimpbrush.c @@ -479,9 +479,6 @@ gimp_brush_transform_size (GimpBrush *brush, } GIMP_BRUSH_GET_CLASS (brush)->transform_size (brush, scale, aspect_ratio, angle, width, height); - /*Transform size can not be less than 1 px*/ - width = MAX(1, width); - height = MAX(1, height); } diff --git a/app/core/gimpbrushgenerated.c b/app/core/gimpbrushgenerated.c index e18b09682e..17f31e80fc 100644 --- a/app/core/gimpbrushgenerated.c +++ b/app/core/gimpbrushgenerated.c @@ -322,6 +322,7 @@ gimp_brush_generated_transform_size (GimpBrush *gbrush, *width = half_width * 2 + 1; *height = half_height * 2 + 1; + } static TempBuf * @@ -350,6 +351,7 @@ gimp_brush_generated_transform_mask (GimpBrush *gbrush, brush->aspect_ratio * aspect_ratio, (brush->angle + 360 * angle), NULL, NULL); + }