Bug 4205

Summary: Missing caps on all but last sub-path in a complex path
Product: cairo Reporter: Carl Worth <cworth>
Component: generalAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 0.9.3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Carl Worth 2005-08-23 00:58:04 UTC
In a complex path, (ie. a path with more than an initial call to
cairo_move_to), only the final subpath is receiving caps when they
should all be receiving caps.
Comment 1 Carl Worth 2005-08-23 01:15:39 UTC
I've now committed a new XFAIL test caps-sub-paths that demonstrates the bug.
Comment 2 Carl Worth 2005-08-23 07:44:21 UTC
2005-08-23  Carl Worth  <cworth@cworth.org>

        Fix for bug #4205:

        * src/cairo-path-stroke.c: (_cairo_stroker_add_caps):
        (_cairo_path_fixed_stroke_to_traps): Abstract the cap-addition
        code from the end of the stroke operation into a new
        _cairo_stroker_add_caps function.

        * src/cairo-path-stroke.c: (_cairo_stroker_move_to): Call the new
        _cairo_stroker_add_caps at the beginning of every move_to so that
        we get caps on every subpath and not just the last one.

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.