From 9cc29faa8ec520addec90f0bf8faad7055f9ab02 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 24 Aug 2004 20:25:15 +0000 Subject: [PATCH] Use the correct index, and compare correctly, reported by Tommi 2004-08-24 Matthias Clasen * gdk-pixbuf-loader.c (gdk_pixbuf_loader_new_with_mime_type): Use the correct index, and compare correctly, reported by Tommi Komulainen. --- gdk-pixbuf/ChangeLog | 3 ++- gdk-pixbuf/gdk-pixbuf-loader.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 8c5247186a..1f7c230885 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,7 +1,8 @@ 2004-08-24 Matthias Clasen * gdk-pixbuf-loader.c (gdk_pixbuf_loader_new_with_mime_type): Use - the correct index, reported by Tommi Komulainen. + the correct index and compare correctly, reported by Tommi Komulainen. + (gdk_pixbuf_loader_new_with_mime_type): * gdk-pixdata.c (gdk_pixdata_from_pixbuf): Work around bugs in the runlength encoder by forcing rowstride * height to be diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index f6755848d5..024c2be2b1 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -600,7 +600,7 @@ gdk_pixbuf_loader_new_with_mime_type (const char *mime_type, mimes = info->mime_types; for (j = 0; mimes[j] != NULL; j++) - if (g_ascii_strcasecmp (mimes[j], mime_type)) { + if (g_ascii_strcasecmp (mimes[j], mime_type) == 0) { image_type = info->name; break; }