forked from AuroraMiddleware/gtk
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:
parent
53931bcf21
commit
4a37a344c1
@ -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:
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user