set the image clean after handling the color profile.

2007-09-21  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_image): set the image clean
	after handling the color profile.

svn path=/trunk/; revision=23601
This commit is contained in:
Sven Neumann 2007-09-21 11:23:03 +00:00 committed by Sven Neumann
parent 7bae73f9a2
commit accb626859
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2007-09-21 Sven Neumann <sven@gimp.org>
* app/file/file-open.c (file_open_image): set the image clean
after handling the color profile.
2007-09-20 Sven Neumann <sven@gimp.org> 2007-09-20 Sven Neumann <sven@gimp.org>
* app/core/gimpimage.[ch]: added a load_proc member to GimpImage * app/core/gimpimage.[ch]: added a load_proc member to GimpImage

View file

@ -194,9 +194,7 @@ file_open_image (Gimp *gimp,
if (image) if (image)
{ {
gimp_image_undo_disable (image);
file_open_handle_color_profile (image, context, progress, run_mode); file_open_handle_color_profile (image, context, progress, run_mode);
gimp_image_undo_enable (image);
} }
return image; return image;
@ -624,6 +622,8 @@ file_open_handle_color_profile (GimpImage *image,
{ {
if (gimp_image_parasite_find (image, "icc-profile")) if (gimp_image_parasite_find (image, "icc-profile"))
{ {
gimp_image_undo_disable (image);
switch (image->gimp->config->color_profile_policy) switch (image->gimp->config->color_profile_policy)
{ {
case GIMP_COLOR_PROFILE_POLICY_ASK: case GIMP_COLOR_PROFILE_POLICY_ASK:
@ -640,5 +640,8 @@ file_open_handle_color_profile (GimpImage *image,
GIMP_RUN_NONINTERACTIVE); GIMP_RUN_NONINTERACTIVE);
break; break;
} }
gimp_image_clean_all (image);
gimp_image_undo_enable (image);
} }
} }