Move scale limit so it does not bother generated brushes.

This commit is contained in:
Alexia Death 2009-10-11 12:17:29 +03:00
parent 424294b738
commit 04bad5609a
3 changed files with 7 additions and 3 deletions

View File

@ -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);
}
/*

View File

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

View File

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