[gimp] app: fall back to BG fill if gimp_get_fill_params() doesn't find a pattern



commit ce639f031b92683c7eaf6bde09acd0c6239de03c
Author: Michael Natterer <mitch gimp org>
Date:   Sun Oct 9 21:07:08 2016 +0200

    app: fall back to BG fill if gimp_get_fill_params() doesn't find a pattern

 app/core/gimp-utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimp-utils.c b/app/core/gimp-utils.c
index fc0694d..247fb93 100644
--- a/app/core/gimp-utils.c
+++ b/app/core/gimp-utils.c
@@ -551,6 +551,10 @@ gimp_get_fill_params (GimpContext   *context,
         {
           g_set_error_literal (error, GIMP_ERROR, GIMP_FAILED,
                               _("No patterns available for this operation."));
+
+          /*  fall back to BG fill  */
+          gimp_context_get_background (context, color);
+
           return FALSE;
         }
       break;


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