gimp r25034 - in trunk: . app/core



Author: neo
Date: Tue Mar  4 21:25:32 2008
New Revision: 25034
URL: http://svn.gnome.org/viewvc/gimp?rev=25034&view=rev

Log:
2008-03-04  Sven Neumann  <sven gimp org>

	* app/core/gimpdrawable-transform.c 
(gimp_drawable_transform_cut):
	clear the selection after cutting it as gimp_selection_extract()
	doesn't do this for us any longer. See bug #510534.



Modified:
   trunk/ChangeLog
   trunk/app/core/gimpdrawable-transform.c

Modified: trunk/app/core/gimpdrawable-transform.c
==============================================================================
--- trunk/app/core/gimpdrawable-transform.c	(original)
+++ trunk/app/core/gimpdrawable-transform.c	Tue Mar  4 21:25:32 2008
@@ -789,7 +789,11 @@
         {
           tiles = gimp_selection_extract (gimp_image_get_mask (image),
                                           GIMP_PICKABLE (drawable),
-                                          context, TRUE, FALSE, TRUE, NULL);
+                                          context,
+                                          TRUE, FALSE, TRUE,
+                                          NULL);
+          /*  clear the selection  */
+          gimp_channel_clear (gimp_image_get_mask (image), NULL, TRUE);
 
           *new_layer = TRUE;
         }
@@ -801,14 +805,11 @@
     }
   else  /*  otherwise, just copy the layer  */
     {
-      if (GIMP_IS_LAYER (drawable))
-        tiles = gimp_selection_extract (gimp_image_get_mask (image),
-                                        GIMP_PICKABLE (drawable),
-                                        context, FALSE, TRUE, TRUE, NULL);
-      else
-        tiles = gimp_selection_extract (gimp_image_get_mask (image),
-                                        GIMP_PICKABLE (drawable),
-                                        context, FALSE, TRUE, FALSE, NULL);
+      tiles = gimp_selection_extract (gimp_image_get_mask (image),
+                                      GIMP_PICKABLE (drawable),
+                                      context,
+                                      FALSE, TRUE, GIMP_IS_LAYER (drawable),
+                                      NULL);
 
       *new_layer = FALSE;
     }



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