[gimp] CID 225808 Arguments in wrong order



commit 371f9578cbc3c0d90e4d590aaddee5b896864185
Author: Sabri Ünal <libreajans gmail com>
Date:   Sun Oct 20 13:06:19 2019 +0000

    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 aeadaaeb6ca4a91f72077eb6d6da2da366d49b57)

 app/paint/gimppaintoptions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c
index 1a3a52d086..60c5959002 100644
--- a/app/paint/gimppaintoptions.c
+++ b/app/paint/gimppaintoptions.c
@@ -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),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]