[gimp] app: silence warning in gimp_transform_resize_crop()



commit 0103fe2c194e910b78c3c325905608685967340e
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.

 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 4594195219..896b214e8b 100644
--- a/app/core/gimp-transform-resize.c
+++ b/app/core/gimp-transform-resize.c
@@ -356,7 +356,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]