app: push the right drawable undo here too

This commit is contained in:
Michael Natterer 2010-02-21 12:23:51 +01:00
parent f13204e0a4
commit e5e6638c32
1 changed files with 5 additions and 1 deletions

View File

@ -457,7 +457,11 @@ gimp_text_layer_set (GimpTextLayer *layer,
if (layer->modified)
{
gimp_image_undo_push_text_layer_modified (image, NULL, layer);
gimp_image_undo_push_drawable_mod (image, NULL, GIMP_DRAWABLE (layer));
gimp_drawable_push_undo (GIMP_DRAWABLE (layer), NULL,
0, 0,
gimp_item_get_width (GIMP_ITEM (layer)),
gimp_item_get_height (GIMP_ITEM (layer)),
NULL, FALSE);
}
gimp_image_undo_push_text_layer (image, undo_desc, layer, NULL);