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.
This commit is contained in:
Matthias Clasen 2004-08-24 20:25:15 +00:00 committed by Matthias Clasen
parent 162354e628
commit 9cc29faa8e
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
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_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

View File

@ -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;
}