mirror of https://github.com/GNOME/gimp.git
Move scale limit so it does not bother generated brushes.
This commit is contained in:
parent
424294b738
commit
04bad5609a
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue