Remove a pointless check from the previous commit that added a new string.

2007-04-29  Matthias Clasen <mclasen@redhat.com>

        * io-jpeg.c: Remove a pointless check from the previous
        commit that added a new string.



svn path=/trunk/; revision=17714
This commit is contained in:
Matthias Clasen 2007-04-29 18:39:59 +00:00 committed by Matthias Clasen
parent 53931bcf21
commit 4a37a344c1
2 changed files with 5 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2007-04-29 Matthias Clasen <mclasen@redhat.com>
* io-jpeg.c: Remove a pointless check from the previous
commit that added a new string.
2007-04-28 Matthias Clasen <mclasen@redhat.com>
* io-png.c:

View File

@ -965,18 +965,8 @@ real_save_jpeg (GdkPixbuf *pixbuf,
w = gdk_pixbuf_get_width (pixbuf);
h = gdk_pixbuf_get_height (pixbuf);
/* no image data? abort */
pixels = gdk_pixbuf_get_pixels (pixbuf);
if (pixels == NULL) {
g_set_error (error,
GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
_("Image contains no pixels."));
return FALSE;
}
/* Allocate a small buffer to convert image data,
* and a larger buffer if doing to_callback save.
*/