[gimp/gimp-2-10] app: in bucket fill tool, don't calculate line art of layer groups



commit 926e28b2195e6e8601c08e272b4d97236c3c5e63
Author: Ell <ell_se yahoo com>
Date:   Mon Jan 7 04:22:43 2019 -0500

    app: in bucket fill tool, don't calculate line art of layer groups
    
    ... since they can't be used with the fill tool.
    
    (cherry picked from commit 4b4fffbd0e21f0682ec9e39ab6ed40913513f3f9)

 app/tools/gimpbucketfilltool.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/app/tools/gimpbucketfilltool.c b/app/tools/gimpbucketfilltool.c
index 16be37ea3c..7d9f83006c 100644
--- a/app/tools/gimpbucketfilltool.c
+++ b/app/tools/gimpbucketfilltool.c
@@ -847,6 +847,9 @@ gimp_bucket_fill_tool_reset_line_art (GimpBucketFillTool    *tool,
     {
       GimpDrawable *drawable = gimp_image_get_active_drawable (image);
 
+      if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)))
+        drawable = NULL;
+
       if (options->sample_merged)
         gimp_line_art_set_input (line_art, GIMP_PICKABLE (image));
       else if (drawable)


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