invalidate all layer and channel previews after loading an image. Fixes

2002-05-10  Michael Natterer  <mitch@gimp.org>

	* app/file/file-open.c (file_open_image): invalidate all layer and
	channel previews after loading an image. Fixes previews containing
	garbage after image loading (also fixes thumbnail generation).
This commit is contained in:
Michael Natterer 2002-05-10 15:26:12 +00:00 committed by Michael Natterer
parent 02b00c61cf
commit 39a660baf8
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-05-10 Michael Natterer <mitch@gimp.org>
* app/file/file-open.c (file_open_image): invalidate all layer and
channel previews after loading an image. Fixes previews containing
garbage after image loading (also fixes thumbnail generation).
2002-05-10 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/image.pdb: initialize a variable to please the

View File

@ -139,7 +139,14 @@ file_open_image (Gimp *gimp,
{
if (gimage_id != -1)
{
return gimp_image_get_by_ID (gimp, gimage_id);
GimpImage *gimage;
gimage = gimp_image_get_by_ID (gimp, gimage_id);
gimp_image_invalidate_layer_previews (gimage);
gimp_image_invalidate_channel_previews (gimage);
return gimage;
}
else
{