From 7e82e309b65ea9d85a968b5bdb54db9b96d420c8 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Sat, 20 Mar 2004 12:38:15 +0000 Subject: [PATCH] don't fiddle with the item size, gimp_drawable_set_tiles() does the right 2004-03-20 Sven Neumann * app/text/gimptextlayer.c (gimp_text_layer_render): don't fiddle with the item size, gimp_drawable_set_tiles() does the right thing. --- ChangeLog | 5 +++++ app/text/gimptextlayer.c | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index c8aacaf2df..a78d1ed194 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-20 Sven Neumann + + * app/text/gimptextlayer.c (gimp_text_layer_render): don't fiddle + with the item size, gimp_drawable_set_tiles() does the right thing. + 2004-03-20 Sven Neumann * plug-ins/common/jigsaw.c: pack and show the "Jigsaw Style" radio diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c index 98d3e021d5..62546a564b 100644 --- a/app/text/gimptextlayer.c +++ b/app/text/gimptextlayer.c @@ -496,7 +496,7 @@ gimp_text_layer_set (GimpTextLayer *layer, * gimp_text_layer_render() might have to resize it. */ if (GIMP_LAYER (layer)->mask) - gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_TEXT, NULL); + gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_TEXT, undo_desc); gimp_image_undo_push_text_layer (image, undo_desc, layer); @@ -587,13 +587,11 @@ gimp_text_layer_render (GimpTextLayer *layer) (width != gimp_item_width (item) || height != gimp_item_height (item))) { - TileManager *new_tiles; + TileManager *new_tiles = tile_manager_new (width, height, + drawable->bytes); - item->width = width; - item->height = height; - - new_tiles = tile_manager_new (width, height, drawable->bytes); gimp_drawable_set_tiles (drawable, FALSE, NULL, new_tiles); + tile_manager_unref (new_tiles); if (GIMP_LAYER (layer)->mask)