[cairo-bugs] [Bug 20075] New: There is a misprint in the spec for cairo_image_surface_create_from_png_stream () function
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Feb 12 01:55:08 PST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=20075
Summary: There is a misprint in the spec for
cairo_image_surface_create_from_png_stream() function
Product: cairo
Version: 1.8.6
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: png functions
AssignedTo: cworth at cworth.org
ReportedBy: tructv at necsv.com
QAContact: cairo-bugs at cairographics.org
In the spec for cairo_image_surface_create_from_png_stream(), the standard
states:
Returns : a new cairo_surface_t initialized with the contents of the PNG file
or NULL if the data read is not a valid PNG image or memory could not be
allocated for the operation.
As my understanding, in case of fail, this function should return "nil" surface
instead of NULL. So i suppose this spec should be:
Returns : a new cairo_surface_t initialized with the contents of the PNG file
or “nil” surface if the data read is not a valid PNG image or memory could
not be allocated for the operation.
Thank you very much for your time and please let me know any ruling/finding
that you may have.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list