Bug 4205 - Missing caps on all but last sub-path in a complex path
Summary: Missing caps on all but last sub-path in a complex path
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 00:58 UTC by Carl Worth
Modified: 2005-08-22 14:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.