Summary: | fill/stroke_extents gives bogus result for zero width/height cases | ||
---|---|---|---|
Product: | cairo | Reporter: | Bob Gibbs <gibbsrc> |
Component: | general | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | high | ||
Version: | 1.0.4 | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Bob Gibbs
2006-06-20 05:31:25 UTC
With a line width of 0, to get the values you would expect you need to use cairo_path_extents() instead of the cairo_(fill|stroke)_extents() which evaluate the bounds of the trapezoids that would be generated by cairo_(fill|stroke) respectively. cairo_path_extents() instead evaluates the bounds of the transformed path irrespective of the pen used. The reporting of the invalid extents was itself fixed in commit 481fd3b4c8d3972ce21399f81b2021a57ed58f00. |
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.