[cairo] Better error return for cairo_pdf_surface_create
Carl Worth
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.
Hi Nick,
Thanks for the patch. It looks like Eugeniy already committed a
similar fix:
http://gitweb.freedesktop.org/?p=cairo;a=commitdiff;h=a37f21cb17a24643f7513dff06bc2b5fd38e2583
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
want.
Thanks,
-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070213/9c5e83ce/attachment.pgp
More information about the cairo
mailing list