Commit 13b384e3 authored by Michael Natterer's avatar Michael Natterer 😴

Don't allow dropping colors and patterns to group layers

parent eb03413b
......@@ -216,7 +216,8 @@ gimp_drawable_tree_view_drop_possible (GimpContainerTreeView *tree_view,
src_type == GIMP_DND_TYPE_PATTERN)
{
if (! dest_viewable ||
gimp_item_get_lock_content (GIMP_ITEM (dest_viewable)))
gimp_item_get_lock_content (GIMP_ITEM (dest_viewable)) ||
gimp_viewable_get_children (GIMP_VIEWABLE (dest_viewable)))
return FALSE;
if (return_drop_pos)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment