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)

(cherry picked from commit aeadaaeb6c)
This commit is contained in:
Sabri Ünal 2019-10-20 13:06:19 +00:00 committed by Jehan
parent 303ba93c5e
commit 371f9578cb
1 changed files with 1 additions and 1 deletions

View File

@ -1053,7 +1053,7 @@ gimp_paint_options_set_default_brush_size (GimpPaintOptions *paint_options,
gint height;
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,
"brush-size", (gdouble) MAX (height, width),