[gimp/gimp-2-8] app: xcf-load fix app/tests/test-xcf



commit 84043c2ed089f992b47cb43b474557dcea0a6022
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Sat Jun 7 17:53:55 2014 +0200

    app: xcf-load fix app/tests/test-xcf
    
    though it crashes loading corrupt files

 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 a4f53cd..dede16e 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -1104,8 +1104,7 @@ xcf_load_layer (XcfInfo    *info,
   info->cp += xcf_read_int32 (info->fp, (guint32 *) &width, 1);
   info->cp += xcf_read_int32 (info->fp, (guint32 *) &height, 1);
   info->cp += xcf_read_int32 (info->fp, (guint32 *) &type, 1);
-  if (gimp_image_base_type (image) != GIMP_IMAGE_TYPE_BASE_TYPE (type) ||
-      width <= 0 || height <= 0)
+  if (width <= 0 || height <= 0)
     return NULL;
 
   info->cp += xcf_read_string (info->fp, &name, 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]