Commit 1c25a2f0 authored by Ell's avatar Ell

app: remove double identity check from raster brush transform funcs

The identity parameter checks added to the raster brush
transformation functions in the previous commit are unnecessary,
since we're already testing for the identity matrix.  Remove them.
parent c690ed6b
......@@ -176,14 +176,6 @@ gimp_brush_real_transform_mask (GimpBrush *brush,
source = gimp_brush_get_mask (brush);
if (scale == 1.0 &&
aspect_ratio == 0.0 &&
angle == 0.0 &&
hardness == 1.0)
{
return gimp_temp_buf_copy (source);
}
src_width = gimp_brush_get_width (brush);
src_height = gimp_brush_get_height (brush);
......@@ -475,14 +467,6 @@ gimp_brush_real_transform_pixmap (GimpBrush *brush,
source = gimp_brush_get_pixmap (brush);
if (scale == 1.0 &&
aspect_ratio == 0.0 &&
angle == 0.0 &&
hardness == 1.0)
{
return gimp_temp_buf_copy (source);
}
src_width = gimp_brush_get_width (brush);
src_height = gimp_brush_get_height (brush);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment