comparison src/image-load.c @ 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 bc9df0fecdc1
children 6ca2c5fd7b13
comparison
equal deleted inserted replaced
960:37fdfe8f2ab1 961:3f03282ec40e
66 static void image_loader_area_prepared_cb(GdkPixbufLoader *loader, gpointer data) 66 static void image_loader_area_prepared_cb(GdkPixbufLoader *loader, gpointer data)
67 { 67 {
68 GdkPixbuf *pb; 68 GdkPixbuf *pb;
69 guchar *pix; 69 guchar *pix;
70 size_t h, rs; 70 size_t h, rs;
71
72 /* a workaround for http://bugzilla.gnome.org/show_bug.cgi?id=547669 */
73 gchar *format = gdk_pixbuf_format_get_name(gdk_pixbuf_loader_get_format(loader));
74 if (strcmp(format, "svg") == 0)
75 {
76 g_free(format);
77 return;
78 }
79
80 g_free(format);
71 81
72 pb = gdk_pixbuf_loader_get_pixbuf(loader); 82 pb = gdk_pixbuf_loader_get_pixbuf(loader);
73 83
74 h = gdk_pixbuf_get_height(pb); 84 h = gdk_pixbuf_get_height(pb);
75 rs = gdk_pixbuf_get_rowstride(pb); 85 rs = gdk_pixbuf_get_rowstride(pb);