mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
Check if there is an active layer if active_layer_only is TRUE
This commit is contained in:
parent
de409ea52a
commit
0953146be1
|
@ -89,6 +89,8 @@ gimp_image_crop (GimpImage *image,
|
|||
|
||||
g_return_if_fail (GIMP_IS_IMAGE (image));
|
||||
g_return_if_fail (GIMP_IS_CONTEXT (context));
|
||||
g_return_if_fail (active_layer_only == FALSE ||
|
||||
gimp_image_get_active_layer (image));
|
||||
|
||||
previous_width = gimp_image_get_width (image);
|
||||
previous_height = gimp_image_get_height (image);
|
||||
|
|
Loading…
Reference in a new issue