changeset 961:3f03282ec40e

a workaround for http://bugzilla.gnome.org/show_bug.cgi?id=547669
author nadvornik
date Wed, 13 Aug 2008 20:46:06 +0000
parents 37fdfe8f2ab1
children 113d8329cbd6
files src/image-load.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/image-load.c	Tue Aug 12 20:21:25 2008 +0000
+++ b/src/image-load.c	Wed Aug 13 20:46:06 2008 +0000
@@ -68,6 +68,16 @@
 	GdkPixbuf *pb;
 	guchar *pix;
 	size_t h, rs;
+	
+	/* a workaround for http://bugzilla.gnome.org/show_bug.cgi?id=547669 */
+	gchar *format = gdk_pixbuf_format_get_name(gdk_pixbuf_loader_get_format(loader));
+	if (strcmp(format, "svg") == 0) 
+		{
+		g_free(format);
+		return;
+		}
+	
+	g_free(format);
 
 	pb = gdk_pixbuf_loader_get_pixbuf(loader);