[gimp] Check if there is an active layer if active_layer_only is TRUE
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Check if there is an active layer if active_layer_only is TRUE
- Date: Thu, 20 Aug 2009 20:44:42 +0000 (UTC)
commit 0953146be10a2d6c23ac53de90fd95e3e000c4e0
Author: Michael Natterer <mitch gimp org>
Date: Thu Aug 20 22:41:49 2009 +0200
Check if there is an active layer if active_layer_only is TRUE
app/core/gimpimage-crop.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpimage-crop.c b/app/core/gimpimage-crop.c
index 9cdaa5e..40ebcde 100644
--- a/app/core/gimpimage-crop.c
+++ b/app/core/gimpimage-crop.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]