summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-04-29 18:38:18 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-04-29 18:38:18 +0000
commit44c7ba14b05043f1756240b8fa90abb72de0426e (patch)
tree73ecd97f9b63049f7490c8ae755ac79f92d922e8
parentf164053f95108b8dff6a5549d93bc0efeb40b270 (diff)
downloadgdk-pixbuf-44c7ba14b05043f1756240b8fa90abb72de0426e.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=/branches/gtk-2-10/; revision=17713
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/io-jpeg.c10
2 files changed, 5 insertions, 10 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index aa3558e89..2d6ca4ff1 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>
Merge from trunk:
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 4d1c354f8..ba3fd94d2 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -964,18 +964,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.
*/