mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Don't spew a warning if the printer is already closed.
2006-12-19 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Don't spew a warning if the printer is already closed.
This commit is contained in:
parent
7c92045621
commit
2148567e8a
@ -1,3 +1,8 @@
|
||||
2006-12-19 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Don't
|
||||
spew a warning if the printer is already closed.
|
||||
|
||||
2006-12-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Behave as
|
||||
|
@ -699,8 +699,8 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader,
|
||||
|
||||
priv = loader->priv;
|
||||
|
||||
/* we expect it's not closed */
|
||||
g_return_val_if_fail (priv->closed == FALSE, TRUE);
|
||||
if (priv->closed)
|
||||
return TRUE;
|
||||
|
||||
/* We have less the LOADER_HEADER_SIZE bytes in the image.
|
||||
* Flush it, and keep going.
|
||||
|
Loading…
Reference in New Issue
Block a user