From 2ea856a21d2d392c0959e726c430e7fed87be97c Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 22 Aug 2005 12:15:28 +0000 Subject: When width/height are 0, copy the src to the dest, don't just return. (#3017) --- pixman/ChangeLog | 5 +++++ pixman/src/pixregion.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'pixman') diff --git a/pixman/ChangeLog b/pixman/ChangeLog index b942ce83..0e9f9684 100644 --- a/pixman/ChangeLog +++ b/pixman/ChangeLog @@ -1,3 +1,8 @@ +2005-08-22 Owen Taylor + + * 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 * src/pixman-remap.h: Fix a typo in the last change. diff --git a/pixman/src/pixregion.c b/pixman/src/pixregion.c index 37505d99..9c122f53 100644 --- a/pixman/src/pixregion.c +++ b/pixman/src/pixregion.c @@ -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; -- cgit v1.2.3