mirror of https://github.com/GNOME/gimp.git
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:
parent
02b00c61cf
commit
39a660baf8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue