Try again to make gdk_pixbuf_get_file_info work for tiff images

svn path=/trunk/; revision=18384
This commit is contained in:
Matthias Clasen
2007-07-05 20:16:59 +00:00
parent f4f7a0a186
commit d2c4ba3639
3 changed files with 13 additions and 8 deletions

View File

@ -199,13 +199,8 @@ tiff_image_parse (TIFF *tiff, TiffContext *context, GError **error)
gint h = height;
(* context->size_func) (&w, &h, context->user_data);
if (w == 0 || h == 0) {
g_set_error (error,
GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
_("Width or height of TIFF image is zero"));
if (w == 0 || h == 0)
return NULL;
}
}
pixels = g_try_malloc (bytes);