[cairo] Better error return for cairo_pdf_surface_create
cworth at cworth.org
Tue Feb 13 17:05:21 PST 2007
On Sat, 20 Jan 2007 21:15:36 +0100, Nick Wellnhofer wrote:
> Currently, cairo_pdf_surface_create always returns
> CAIRO_STATUS_NO_MEMORY if an error occurs. The attached patch makes it
> possible to distinguish at least between memory and file related errors.
Thanks for the patch. It looks like Eugeniy already committed a
It doesn't add the READ_ERROR and FILE_NOT_FOUND cases but those
really aren't possible for surface_create anyway, (well it could
be useful to distinguish between a non-existent destination directory
as opposed to some other write error, but neither the original patch
nor what was committed do that).
Anyway, let us know if the fix that's there now isn't doing what you
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070213/9c5e83ce/attachment.pgp
More information about the cairo