[cairo-bugs] [Bug 7049] PS/PDF/SVG stream error checking

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 25 16:53:35 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=7049





------- Comment #2 from chris at chris-wilson.co.uk  2007-09-25 16:54 PST -------
The problem with the test case is that the surfaces do not attempt to write to
the stream until cairo_surface_finish() (in this case called implicitly from
cairo_surface_destroy) at which point the error status has been silently lost.

After adding cairo_surface_finish() before the cairo_surface_status(), the test
output becomes:
status (CAIRO_STATUS_SUCCESS is 0)
PNG 11 (error while writing to output stream)
PS   0 (success), 11 (error while writing to output stream)
PDF  0 (success), 11 (error while writing to output stream)
SVG  0 (success), 11 (error while writing to output stream)


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list