Commit 5c29425a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

clear the selection after cutting it as gimp_selection_extract() doesn't

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.


svn path=/trunk/; revision=25034
parent e3f215c4
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.
2008-03-02 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
......
......@@ -789,7 +789,11 @@ gimp_drawable_transform_cut (GimpDrawable *drawable,
{
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 @@ gimp_drawable_transform_cut (GimpDrawable *drawable,
}
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment