[gimp] app: small fix to gimp_drawable_edit_fill()



commit 3738ff3ffdd2eae07275c1d7f5eebdd34713b587
Author: Ell <ell_se yahoo com>
Date:   Mon Dec 31 05:33:01 2018 -0500

    app: small fix to gimp_drawable_edit_fill()

 app/core/gimpdrawable-edit.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/app/core/gimpdrawable-edit.c b/app/core/gimpdrawable-edit.c
index 3456d0bf8a..5da8a9d651 100644
--- a/app/core/gimpdrawable-edit.c
+++ b/app/core/gimpdrawable-edit.c
@@ -157,7 +157,7 @@ gimp_drawable_edit_fill (GimpDrawable    *drawable,
                          GimpFillOptions *options,
                          const gchar     *undo_desc)
 {
-  GimpContext *context = GIMP_CONTEXT (options);
+  GimpContext *context;
   gint         x, y, width, height;
 
   g_return_if_fail (GIMP_IS_DRAWABLE (drawable));
@@ -170,6 +170,8 @@ gimp_drawable_edit_fill (GimpDrawable    *drawable,
       return;  /*  nothing to do, but the fill succeeded  */
     }
 
+  context = GIMP_CONTEXT (options);
+
   if (gimp_layer_mode_is_alpha_only (gimp_context_get_paint_mode (context)))
     {
       if (! gimp_drawable_has_alpha (drawable) ||


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