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
This commit is contained in:
parent
e3f215c4ac
commit
5c29425ad6
@ -1,3 +1,9 @@
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user