[gimp] pdb: fix gimp-edit-bucket-fill when there is a selection



commit 8d3c6a4f38dacf5c93cd011e089b6e749a99577c
Author: Michael Natterer <mitch gimp org>
Date:   Tue Mar 8 01:17:35 2016 +0100

    pdb: fix gimp-edit-bucket-fill when there is a selection
    
    use the passed opacity and paint mode instead of hardcoding OPAQUE and
    NORMAL.

 app/pdb/edit-cmds.c       |    2 +-
 tools/pdbgen/pdb/edit.pdb |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/pdb/edit-cmds.c b/app/pdb/edit-cmds.c
index 6829dc8..4aac425 100644
--- a/app/pdb/edit-cmds.c
+++ b/app/pdb/edit-cmds.c
@@ -626,7 +626,7 @@ edit_bucket_fill_invoker (GimpProcedure         *procedure,
           if (! gimp_channel_is_empty (gimp_image_get_mask (image)))
             {
               success = gimp_edit_fill (image, drawable, context, fill_type,
-                                        GIMP_OPACITY_OPAQUE, GIMP_NORMAL_MODE,
+                                        opacity / 100.0, paint_mode,
                                         error);
             }
           else
diff --git a/tools/pdbgen/pdb/edit.pdb b/tools/pdbgen/pdb/edit.pdb
index b0f4cff..0d3af69 100644
--- a/tools/pdbgen/pdb/edit.pdb
+++ b/tools/pdbgen/pdb/edit.pdb
@@ -662,7 +662,7 @@ HELP
       if (! gimp_channel_is_empty (gimp_image_get_mask (image)))
         {
           success = gimp_edit_fill (image, drawable, context, fill_type,
-                                    GIMP_OPACITY_OPAQUE, GIMP_NORMAL_MODE,
+                                    opacity / 100.0, paint_mode,
                                     error);
         }
       else


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