diff options
author | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-22 22:30:58 +0000 |
---|---|---|
committer | Charlie Brej <cbrej@cs.man.ac.uk> | 2009-11-22 22:30:58 +0000 |
commit | 645452c09948bc761e8e38a05eef9a6a3eafb06f (patch) | |
tree | af18e9a7f2b4945340844a6bc2733a9eb25dfe9e | |
parent | fe46fb880340dbd41e711884eead7bc08c2ff287 (diff) |
[region] Overlap top right edge lower rectangle starts right of the old
Probably a typo in the original version.
-rw-r--r-- | src/libply/ply-region.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libply/ply-region.c b/src/libply/ply-region.c index 2e28b2bc..8dd7558a 100644 --- a/src/libply/ply-region.c +++ b/src/libply/ply-region.c @@ -154,9 +154,9 @@ merge_rectangle_with_sub_list (ply_region_t *region, ply_rectangle_t *rectangle; rectangle = copy_rectangle (new_area); - rectangle->x = new_area->x + old_area->width; + rectangle->x = old_area->x + old_area->width; rectangle->y = old_area->y; - rectangle->width = (old_area->x + new_area->width) - (old_area->x + old_area->width); + rectangle->width = (new_area->x + new_area->width) - (old_area->x + old_area->width); rectangle->height = (new_area->y + new_area->height) - old_area->y; merge_rectangle_with_sub_list (region, rectangle, next_node); |