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:
Matthias Clasen 2006-12-19 20:45:04 +00:00 committed by Matthias Clasen
parent 7c92045621
commit 2148567e8a
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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.