CID 225808 Arguments in wrong order
Swapped arguments: height is passed to width. width is passed to height. Please check the function in /app/core/gimpbrush.c at line: 606 void gimp_brush_transform_size (GimpBrush *brush, gdouble scale, gdouble aspect_ratio, gdouble angle, gboolean reflect, gint *width, gint *height)
This commit is contained in:
@ -1053,7 +1053,7 @@ gimp_paint_options_set_default_brush_size (GimpPaintOptions *paint_options,
|
|||||||
gint height;
|
gint height;
|
||||||
gint width;
|
gint width;
|
||||||
|
|
||||||
gimp_brush_transform_size (brush, 1.0, 0.0, 0.0, FALSE, &height, &width);
|
gimp_brush_transform_size (brush, 1.0, 0.0, 0.0, FALSE, &width, &height);
|
||||||
|
|
||||||
g_object_set (paint_options,
|
g_object_set (paint_options,
|
||||||
"brush-size", (gdouble) MAX (height, width),
|
"brush-size", (gdouble) MAX (height, width),
|
||||||
|
Reference in New Issue
Block a user