Commit fa94ab03 authored by Michael Natterer's avatar Michael Natterer 😴

app: fix warning in gimp_edit_paste()

gimp_image_add_layer()'s "parent" parameter is a layer.
parent f869933e
......@@ -393,7 +393,7 @@ gimp_edit_paste (GimpImage *image,
*/
gimp_image_add_layer (image, layer,
GIMP_IS_LAYER (drawable) ?
gimp_item_get_parent (GIMP_ITEM (drawable)) :
GIMP_LAYER (gimp_item_get_parent (GIMP_ITEM (drawable))) :
NULL,
-1, TRUE);
break;
......
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