diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-04-29 18:39:59 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-04-29 18:39:59 +0000 |
commit | 4a37a344c19a89d1d47a2713e311ec9cd86b5751 (patch) | |
tree | d53a9d06054403c5f95f979fada273fb7c4999d0 /gdk-pixbuf | |
parent | 53931bcf21be26badab3241e0f2b8ce521ffbc85 (diff) | |
download | gtk+-4a37a344c19a89d1d47a2713e311ec9cd86b5751.tar.gz |
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
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/io-jpeg.c | 10 |
2 files changed, 5 insertions, 10 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 124194a9da..df7c7461c5 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -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: diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index 477751216e..1df2b813ca 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -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. */ |