[gimp/gimp-2-10] app: silence warning in gimp_transform_resize_crop()



commit 6c0d20c9e621256c24a05c3cbbf4d8daef27e547
Author: Ell <ell_se yahoo com>
Date:   Fri Jan 17 00:26:14 2020 +0200

    app: silence warning in gimp_transform_resize_crop()
    
    The crop-to-result and crop-with-aspect transform-boundary
    algorithms seem to consistently fail in some cases, and spit out a
    warning, which can be too verbose if it triggers the debug dialog.
    
    Demote the warning to a g_printerr(), with an eye to just dropping
    these algorithms altogether.
    
    (cherry picked from commit 0103fe2c194e910b78c3c325905608685967340e)

 app/core/gimp-transform-resize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/core/gimp-transform-resize.c b/app/core/gimp-transform-resize.c
index b32f9f2bad..7aabd67761 100644
--- a/app/core/gimp-transform-resize.c
+++ b/app/core/gimp-transform-resize.c
@@ -366,7 +366,7 @@ gimp_transform_resize_crop (const GimpVector2 *orig_points,
       /* saveguard if something went wrong, adjust and give warning */
       gimp_transform_resize_adjust (orig_points, n_points,
                                     x1, y1, x2, y2);
-      g_warning ("no rectangle found by algorithm, no cropping done");
+      g_printerr ("no rectangle found by algorithm, no cropping done\n");
       return;
     }
   else


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