Bug 68014 - Writing on a finished surface.
Summary: Writing on a finished surface.
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.12.14
Hardware: All All
: medium normal
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-12 12:40 UTC by Christope
Modified: 2013-08-13 17:31 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Example code (745 bytes, text/plain)
2013-08-12 12:40 UTC, Christope
Details

Description Christope 2013-08-12 12:40:23 UTC
Created attachment 83963 [details]
Example code

According to the manual¹, after a surface is finished, "Further
drawing to the surface will [...] trigger a
CAIRO_STATUS_SURFACE_FINISHED error."  However the attached code
shows that cairo_stroke aborts the program instead of setting the
appropriate error.

Best,
Chris


¹ http://www.cairographics.org/manual/cairo-cairo-surface-t.html#cairo-surface-finish
Comment 1 Uli Schlachter 2013-08-12 14:52:43 UTC
Patches for this are on the mailing list: http://lists.cairographics.org/archives/cairo/2013-August/024546.html
Comment 2 Uli Schlachter 2013-08-13 17:31:12 UTC
Fixed with commit 18633b081026eb88931af6130b3e716fdb954e19.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.