Commit d2c4ba36 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Try again to make gdk_pixbuf_get_file_info work for tiff images

svn path=/trunk/; revision=18384
parent f4f7a0a1
2007-07-05 Matthias Clasen <mclasen@redhat.com>
* io-tiff.c: Revert the last change, it was wrong
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Redo the last
change in a different way.
2007-07-04 Tor Lillqvist <tml@novell.com> 2007-07-04 Tor Lillqvist <tml@novell.com>
* pixops/Makefile.am (timescale_LDADD): Use GDK_PIXBUF_DEP_LIBS * pixops/Makefile.am (timescale_LDADD): Use GDK_PIXBUF_DEP_LIBS
......
...@@ -723,8 +723,12 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader, ...@@ -723,8 +723,12 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader,
GError *tmp = NULL; GError *tmp = NULL;
if (!priv->image_module->stop_load (priv->context, &tmp) || tmp) if (!priv->image_module->stop_load (priv->context, &tmp) || tmp)
{ {
gdk_pixbuf_loader_ensure_error (loader, &tmp); /* don't call gdk_pixbuf_loader_ensure_error()
g_propagate_error (error, tmp); * here, since we might not get an error in the
* gdk_pixbuf_get_file_info() case
*/
if (tmp)
g_propagate_error (error, tmp);
retval = FALSE; retval = FALSE;
} }
} }
......
...@@ -199,13 +199,8 @@ tiff_image_parse (TIFF *tiff, TiffContext *context, GError **error) ...@@ -199,13 +199,8 @@ tiff_image_parse (TIFF *tiff, TiffContext *context, GError **error)
gint h = height; gint h = height;
(* context->size_func) (&w, &h, context->user_data); (* context->size_func) (&w, &h, context->user_data);
if (w == 0 || h == 0) { 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"));
return NULL; return NULL;
}
} }
pixels = g_try_malloc (bytes); pixels = g_try_malloc (bytes);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment