app: silence a harmless Gimp-Core-CRITICAL

Dragging a channel preview (not RGBA) over a layer preview
GIMP used to print:

Gimp-Core-CRITICAL **: gimp_container_get_child_index: ...
           assertion `GIMP_IS_CONTAINER (container)' failed
This commit is contained in:
Massimo Valentini 2011-11-18 18:36:00 +01:00
parent 0f08e870f4
commit c34348a2cd
1 changed files with 3 additions and 2 deletions

View File

@ -520,8 +520,9 @@ gimp_container_tree_view_real_drop_possible (GimpContainerTreeView *tree_view,
else if (gimp_container_have (container, GIMP_OBJECT (src_viewable)))
src_container = container;
src_index = gimp_container_get_child_index (src_container,
GIMP_OBJECT (src_viewable));
if (src_container)
src_index = gimp_container_get_child_index (src_container,
GIMP_OBJECT (src_viewable));
}
if (dest_viewable)