app: in bucket fill tool, don't calculate line art of layer groups

... since they can't be used with the fill tool.
This commit is contained in:
Ell 2019-01-07 04:22:43 -05:00
parent 19320235f1
commit 4b4fffbd0e
1 changed files with 3 additions and 0 deletions

View File

@ -847,6 +847,9 @@ gimp_bucket_fill_tool_reset_line_art (GimpBucketFillTool *tool,
{ {
GimpDrawable *drawable = gimp_image_get_active_drawable (image); GimpDrawable *drawable = gimp_image_get_active_drawable (image);
if (gimp_viewable_get_children (GIMP_VIEWABLE (drawable)))
drawable = NULL;
if (options->sample_merged) if (options->sample_merged)
gimp_line_art_set_input (line_art, GIMP_PICKABLE (image)); gimp_line_art_set_input (line_art, GIMP_PICKABLE (image));
else if (drawable) else if (drawable)