Try again to make gdk_pixbuf_get_file_info work for tiff images
svn path=/trunk/; revision=18384
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user