summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimo Valentini <mvalentini@src.gnome.org>2014-09-23 12:37:08 +0200
committerBryce Harrington <bryce@osg.samsung.com>2015-06-04 15:00:58 -0700
commit9f2bbfa41fa26a44c38949ecf329b06b5585c87c (patch)
tree743b7cf37045a2b1f4212ce5eabd26d1646937a7
parentb9ada819953303e708a376779ff27f75ff6bc51c (diff)
polygon-intersection: Do not discard intersection exactly at top edge
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=74779 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r--src/cairo-polygon-intersect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-polygon-intersect.c b/src/cairo-polygon-intersect.c
index 2cd73d2e5..c574154cd 100644
--- a/src/cairo-polygon-intersect.c
+++ b/src/cairo-polygon-intersect.c
@@ -728,7 +728,7 @@ _cairo_bo_edge_contains_intersect_point (cairo_bo_edge_t *edge,
top_x = _line_compute_intersection_x_for_y (&edge->edge.line,
edge->edge.top);
- return _cairo_bo_intersect_ordinate_32_compare (point->x, top_x) > 0;
+ return _cairo_bo_intersect_ordinate_32_compare (point->x, top_x) >= 0;
} else { /* cmp_bottom == 0 */
cairo_fixed_t bot_x;