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

This commit is contained in:
Owen Taylor 2005-08-22 12:15:28 +00:00
parent 31e4ade4ab
commit 2ea856a21d
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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;