Commit 5e960ad5 authored by Jehan's avatar Jehan

app: fix gimp_item_tree_get_insert_pos() with GIMP_IMAGE_ACTIVE_PARENT.

Don't check for NULL parent as it is a valid parent (for a root item).
Check instead just if we are the first item in the list.
parent a7c59277
Pipeline #180010 failed with stages
in 30 minutes and 36 seconds
......@@ -459,7 +459,7 @@ gimp_item_tree_get_insert_pos (GimpItemTree *tree,
* If hierarchy is different, use the toplevel container
* (same if there are no selected items).
if (*parent != NULL && *parent != selected_parent)
if (iter != private->selected_items && *parent != selected_parent)
*parent = NULL;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment