gimp r27209 - in trunk: . app/tools



Author: mitch
Date: Fri Oct 10 15:41:03 2008
New Revision: 27209
URL: http://svn.gnome.org/viewvc/gimp?rev=27209&view=rev

Log:
2008-10-10  Michael Natterer  <mitch gimp org>

	* app/tools/gimpmovetool.c (gimp_move_tool_button_release): flush
	the image after setting active items back from temporarily
	selected ones. Fixes menu item sensitivity.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpmovetool.c

Modified: trunk/app/tools/gimpmovetool.c
==============================================================================
--- trunk/app/tools/gimpmovetool.c	(original)
+++ trunk/app/tools/gimpmovetool.c	Fri Oct 10 15:41:03 2008
@@ -454,6 +454,8 @@
     }
   else
     {
+      gboolean flush = FALSE;
+
       if (! config->move_tool_changes_active ||
           (release_type == GIMP_BUTTON_RELEASE_CANCEL))
         {
@@ -462,6 +464,8 @@
               gimp_image_set_active_layer (display->image,
                                            move->old_active_layer);
               move->old_active_layer = NULL;
+
+              flush = TRUE;
             }
 
           if (move->old_active_vectors)
@@ -469,6 +473,8 @@
               gimp_image_set_active_vectors (display->image,
                                              move->old_active_vectors);
               move->old_active_vectors = NULL;
+
+              flush = TRUE;
             }
         }
 
@@ -477,9 +483,13 @@
           if (move->floating_layer)
             {
               floating_sel_anchor (move->floating_layer);
-              gimp_image_flush (display->image);
+
+              flush = TRUE;
             }
         }
+
+      if (flush)
+        gimp_image_flush (display->image);
     }
 }
 



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