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
This commit is contained in:
@ -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;
|
||||
|
@ -100,7 +100,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);
|
||||
|
||||
|
Reference in New Issue
Block a user