gimp r26980 - in trunk: . plug-ins/common



Author: neo
Date: Wed Sep 17 22:11:31 2008
New Revision: 26980
URL: http://svn.gnome.org/viewvc/gimp?rev=26980&view=rev

Log:
2008-09-18  Sven Neumann  <sven gimp org>

	* plug-ins/common/lcms.c (run): call gimp_displays_flush() at 
the
	end of all interactive uses. Fixes bug #552104.



Modified:
   trunk/ChangeLog
   trunk/plug-ins/common/lcms.c

Modified: trunk/plug-ins/common/lcms.c
==============================================================================
--- trunk/plug-ins/common/lcms.c	(original)
+++ trunk/plug-ins/common/lcms.c	Wed Sep 17 22:11:31 2008
@@ -482,6 +482,9 @@
     }
 
  done:
+  if (run_mode == GIMP_RUN_INTERACTIVE)
+    gimp_displays_flush ();
+
   if (config)
     g_object_unref (config);
 
@@ -867,6 +870,8 @@
 
   if (! lcms_image_set_profile (image, dest_profile, filename, FALSE))
     {
+      gimp_image_undo_group_end (image);
+
       return FALSE;
     }
 
@@ -917,8 +922,6 @@
 
   gimp_image_undo_group_end (image);
 
-  gimp_displays_flush ();
-
   return TRUE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]