changeset 1704:566abe50976d

workaround for xpm loader https://sourceforge.net/tracker/?func=detail&aid=2824016&group_id=222125&atid=1054680
author nadvornik
date Sun, 23 Aug 2009 14:10:56 +0000
parents 7c4a87f98cc9
children b8491d75ea22
files src/image-load.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/image-load.c	Sun Aug 23 13:37:15 2009 +0000
+++ b/src/image-load.c	Sun Aug 23 14:10:56 2009 +0000
@@ -387,9 +387,13 @@
 	guchar *pix;
 	size_t h, rs;
 	
-	/* a workaround for http://bugzilla.gnome.org/show_bug.cgi?id=547669 */
+	/* a workaround for 
+	   http://bugzilla.gnome.org/show_bug.cgi?id=547669 
+	   http://bugzilla.gnome.org/show_bug.cgi?id=589334
+	*/
 	gchar *format = gdk_pixbuf_format_get_name(gdk_pixbuf_loader_get_format(loader));
-	if (strcmp(format, "svg") == 0)
+	if (strcmp(format, "svg") == 0 ||
+	    strcmp(format, "xpm") == 0)
 		{
 		g_free(format);
 		return;