[gimp] app: remove xcf-load check that layer_type == image_type
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove xcf-load check that layer_type == image_type
- Date: Sat, 7 Jun 2014 15:55:56 +0000 (UTC)
commit 5d3583af87470faf298367bd709891f9ac0faa5b
Author: Michael Natterer <mitch gimp org>
Date: Sat Jun 7 17:52:32 2014 +0200
app: remove xcf-load check that layer_type == image_type
This is not always true for floating selections.
app/xcf/xcf-load.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c
index b8ed336..a2c5bf1 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -1390,8 +1390,7 @@ xcf_load_layer (XcfInfo *info,
return NULL;
}
- if (gimp_image_get_base_type (image) != base_type ||
- width <= 0 || height <= 0)
+ if (width <= 0 || height <= 0)
return NULL;
/* do not use gimp_image_get_layer_format() because it might
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]