app: pass the image to g_object_new() in gimp_text_layer_from_layer()

This commit is contained in:
Michael Natterer
2011-02-01 14:15:46 +01:00
parent eacd80446d
commit 40e11d7ad1

View File

@ -183,7 +183,9 @@ gimp_text_layer_from_layer (GimpLayer *layer,
g_return_val_if_fail (GIMP_IS_LAYER (layer), NULL);
g_return_val_if_fail (GIMP_IS_TEXT (text), NULL);
text_layer = g_object_new (GIMP_TYPE_TEXT_LAYER, NULL);
text_layer = g_object_new (GIMP_TYPE_TEXT_LAYER,
"image", gimp_item_get_image (GIMP_ITEM (layer)),
NULL);
gimp_item_replace_item (GIMP_ITEM (text_layer), GIMP_ITEM (layer));