Don't allow to drop stuff to locked drawables

This commit is contained in:
Michael Natterer 2009-08-21 14:10:22 +02:00
parent a7efe42870
commit b929a7a67c
1 changed files with 2 additions and 1 deletions

View File

@ -215,7 +215,8 @@ gimp_drawable_tree_view_drop_possible (GimpContainerTreeView *tree_view,
if (src_type == GIMP_DND_TYPE_COLOR ||
src_type == GIMP_DND_TYPE_PATTERN)
{
if (! dest_viewable)
if (! dest_viewable ||
gimp_item_get_lock_content (GIMP_ITEM (dest_viewable)))
return FALSE;
if (return_drop_pos)