Bug 3017

Summary: pixman_region_union_rect() and width/height zero rectangles
Product: pixman Reporter: Owen Taylor <otaylor>
Component: pixmanAssignee: Carl Worth <cworth>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: high    
Version: 0.1.3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Owen Taylor 2005-04-13 14:06:47 UTC
pixman_region_union_rect(), contains:

    if (!width || !height)
        return PIXMAN_REGION_STATUS_FAILURE;

Which seems clearly wrong to me. It should be something like

        return pixman_region_copy(dst, src);
Comment 1 Owen Taylor 2005-08-22 12:15:34 UTC
2005-08-22  Owen Taylor  <otaylor@redhat.com>

        * src/pixregion.c (pixman_region_union_rect): When width/height
        are 0, copy the src to the dest, don't just return. (#3017)

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.