Commit 1c91578b authored by Ell's avatar Ell

app: don't show result-size warning when transforming a selection

In gimp_drawable_transform_get_effective_clip(), always return
RESIZE_CLIP when the input drawable is the image mask, since the
presence of a selection doesn't matter in this case.  This avoids
erroneously displaying a result-size warning when transforming the
selection using any of the selection tools.
parent 04f9281b
......@@ -85,10 +85,14 @@ gimp_drawable_transform_get_effective_clip (GimpDrawable *drawable,
}
else
{
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
GimpChannel *mask = gimp_image_get_mask (image);
if (gimp_channel_is_empty (gimp_image_get_mask (image)))
clip_result = GIMP_TRANSFORM_RESIZE_CLIP;
if (GIMP_CHANNEL (drawable) == mask ||
gimp_channel_is_empty (mask))
{
clip_result = GIMP_TRANSFORM_RESIZE_CLIP;
}
}
}
......
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