diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-08-24 20:23:32 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-24 20:23:32 +0000 |
commit | ea8ea5d5cb68484ed018637561dda3b4c21223e8 (patch) | |
tree | 97fe68af8de92074fd1cc4de1078e7e7aa252b1c | |
parent | 415799368272e42f0adb43c942a6a8777cf31a58 (diff) | |
download | gdk-pixbuf-ea8ea5d5cb68484ed018637561dda3b4c21223e8.tar.gz |
Use the correct index, and compare correctly, reported by Tommi
2004-08-24 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_new_with_mime_type): Use
the correct index, and compare correctly, reported by Tommi Komulainen.
-rw-r--r-- | gdk-pixbuf/ChangeLog | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index e8df08a89..876daacd6 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,7 +1,7 @@ 2004-08-24 Matthias Clasen <mclasen@redhat.com> * 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-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 78f1a4ae8..1f357d23c 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -599,11 +599,11 @@ 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; } - } + } g_slist_free (formats); |