[cairo-commit] src/cairo-png.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Apr 23 05:54:36 PDT 2007


 src/cairo-png.c |    1 +
 1 files changed, 1 insertion(+)

New commits:
diff-tree 260dcb316e14945e7600406954e4876e8827a777 (from 0fce7e85a1c853216866ddf6a40725e7ce57fe93)
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Apr 23 13:54:37 2007 +0100

    Add a _cairo_error() to png_simple_error_callback()
    
    With the introduction of the error callbacks for PNG, we have the
    opportunity for the user to set a breakpoint (via _cairo_error) at the
    point the error is first rasied.

diff --git a/src/cairo-png.c b/src/cairo-png.c
index 442fec5..b37663a 100644
--- a/src/cairo-png.c
+++ b/src/cairo-png.c
@@ -91,6 +91,7 @@ static void
 png_simple_error_callback (png_structp png_save_ptr,
 	                   png_const_charp error_msg)
 {
+    _cairo_error (CAIRO_STATUS_NO_MEMORY);
     longjmp (png_save_ptr->jmpbuf, CAIRO_STATUS_NO_MEMORY);
 }
 


More information about the cairo-commit mailing list