mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-03 07:48:04 +02:00
[in-fill] Fix typo in on-vertex test.
Eeek! Comparing point->y against in_fill->x is a bad idea.
This commit is contained in:
parent
cfd484cd01
commit
d840deb57b
1 changed files with 5 additions and 5 deletions
|
|
@ -122,11 +122,11 @@ _cairo_in_fill_add_edge (cairo_in_fill_t *in_fill,
|
|||
}
|
||||
|
||||
/* First check whether the query is on an edge */
|
||||
if ((p1->x == in_fill->x && p1->x == in_fill->y) ||
|
||||
(p2->x == in_fill->x && p2->x == in_fill->y) ||
|
||||
(! (p2->y < in_fill->y || p1->y > in_fill->y) &&
|
||||
! (p1->x > in_fill->x && p2->x > in_fill->x) &&
|
||||
! (p1->x < in_fill->x && p2->x < in_fill->x) &&
|
||||
if ((p1->x == in_fill->x && p1->y == in_fill->y) ||
|
||||
(p2->x == in_fill->x && p2->y == in_fill->y) ||
|
||||
(! (p2->y < in_fill->y || p1->y > in_fill->y ||
|
||||
(p1->x > in_fill->x && p2->x > in_fill->x) ||
|
||||
(p1->x < in_fill->x && p2->x < in_fill->x)) &&
|
||||
edge_compare_for_y_against_x (p1, p2, in_fill->y, in_fill->x) == 0))
|
||||
{
|
||||
in_fill->on_edge = TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue