[gimp] app: fix warning in gimp_edit_paste()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix warning in gimp_edit_paste()
- Date: Tue, 20 Sep 2016 22:10:35 +0000 (UTC)
commit fa94ab03cae9c2fd823b869a1e862195fce50938
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 21 00:09:38 2016 +0200
app: fix warning in gimp_edit_paste()
gimp_image_add_layer()'s "parent" parameter is a layer.
app/core/gimp-edit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimp-edit.c b/app/core/gimp-edit.c
index 4430772..7b6e69a 100644
--- a/app/core/gimp-edit.c
+++ b/app/core/gimp-edit.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]