mirror of https://github.com/GNOME/gimp.git
Fixing the scale thing right and in the right place
This commit is contained in:
parent
04bad5609a
commit
e5ad18cba5
|
@ -68,10 +68,6 @@ gimp_brush_real_transform_size (GimpBrush *brush,
|
|||
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -641,4 +637,8 @@ gimp_brush_transform_bounding_box (GimpBrush *brush,
|
|||
|
||||
*width = (gint) (ceil (MAX (MAX (x1, x2), MAX (x3, x4))) - *x);
|
||||
*height = (gint) (ceil (MAX (MAX (y1, y2), MAX (y3, y4))) - *y);
|
||||
|
||||
/*Transform size can not be less than 1 px*/
|
||||
*width = MAX(1, *width);
|
||||
*height = MAX(1, *height);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue