app: leave locked pixels alone when cropping

Cropping tools will no longer discard layer data that falls out of the
crop region if the layer's pixels are locked

(cherry picked from commit 9a9e2e9a19)
This commit is contained in:
woob
2020-03-29 02:24:07 -04:00
committed by Jehan
parent 824a5a4580
commit d5fc3e8009
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ gimp_image_crop (GimpImage *image,
gimp_item_translate (item, -x, -y, TRUE);
if (crop_layers)
if (crop_layers && ! gimp_item_is_content_locked (item))
{
gint off_x, off_y;
gint lx1, ly1, lx2, ly2;

View File

@ -99,7 +99,7 @@ gimp_crop_options_class_init (GimpCropOptionsClass *klass)
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_DELETE_PIXELS,
"delete-pixels",
_("Delete cropped pixels"),
_("Discard layer data that falls out of the crop region"),
_("Discard non-locked layer data that falls out of the crop region"),
TRUE,
GIMP_PARAM_STATIC_STRINGS);