Commit c34348a2 authored by Massimo Valentini's avatar Massimo Valentini

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
parent 0f08e870
......@@ -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)
......
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