changed a call to gimp_image_undo_enable to _undo_disable which was

2004-04-16  Pedro Gimeno  <pggimeno@wanadoo.es>

	* plug-ins/common/tile.c (tile): changed a call to
	gimp_image_undo_enable to _undo_disable which was obviously the
	intention of the author. Added a call to gimp_drawable_update to
	get the previews refreshed.
This commit is contained in:
Pedro Gimeno 2004-04-16 17:45:30 +00:00 committed by Pedro Gimeno Fortea
parent 2fd72be1bc
commit f4d3161661
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2004-04-16 Pedro Gimeno <pggimeno@wanadoo.es>
* plug-ins/common/tile.c (tile): changed a call to
gimp_image_undo_enable to _undo_disable which was obviously the
intention of the author. Added a call to gimp_drawable_update to
get the previews refreshed.
2004-04-16 Sven Neumann <sven@gimp.org>
* app/tools/gimpcolorpickertool.c

View File

@ -260,7 +260,7 @@ tile (gint32 image_id,
new_image_id = gimp_image_new (tvals.new_width, tvals.new_height,
image_type);
gimp_image_undo_enable (new_image_id);
gimp_image_undo_disable (new_image_id);
*layer_id = gimp_layer_new (new_image_id, _("Background"),
tvals.new_width, tvals.new_height,
gimp_drawable_type (drawable_id),
@ -354,7 +354,9 @@ tile (gint32 image_id,
gimp_image_undo_group_end (image_id);
}
gimp_drawable_flush (drawable);
gimp_drawable_update (drawable->drawable_id,
0, 0,
drawable->width, drawable->height);
gimp_drawable_detach (drawable);
return new_image_id;