Bug 68014

Summary: Writing on a finished surface.
Product: cairo Reporter: Christope <christophe.troestler>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium CC: christophe.troestler, psychon
Version: 1.12.14   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Example code

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.