[gimp] app: remove xcf-load check that layer_type == image_type



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]