mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 08:30:17 +01:00
When width/height are 0, copy the src to the dest, don't just return. (#3017)
This commit is contained in:
parent
31e4ade4ab
commit
2ea856a21d
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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)
|
||||
|
||||
2005-08-21 Billy Biggs <vektor@dumbterm.net>
|
||||
|
||||
* src/pixman-remap.h: Fix a typo in the last change.
|
||||
|
|
|
|||
|
|
@ -1156,7 +1156,7 @@ pixman_region_union_rect(pixman_region16_t *dest, pixman_region16_t *source,
|
|||
pixman_region16_t region;
|
||||
|
||||
if (!width || !height)
|
||||
return PIXMAN_REGION_STATUS_SUCCESS;
|
||||
return pixman_region_copy (dest, source);
|
||||
region.data = NULL;
|
||||
region.extents.x1 = x;
|
||||
region.extents.y1 = y;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue