From 2148567e8a1876bfb08b1b1783b6c8e6f1ea592d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 19 Dec 2006 20:45:04 +0000 Subject: [PATCH] Don't spew a warning if the printer is already closed. 2006-12-19 Matthias Clasen * gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Don't spew a warning if the printer is already closed. --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/gdk-pixbuf-loader.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index de1501f126..5a999d960d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2006-12-19 Matthias Clasen + + * gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Don't + spew a warning if the printer is already closed. + 2006-12-09 Matthias Clasen * gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Behave as diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index 977d8de23c..a3c8e8c93d 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -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.