Bug fix. Tried to access a fictitious vertex

This commit is contained in:
Ophir Setter 2007-06-27 09:33:42 +00:00
parent 382c0f6d23
commit 6ce6710e83
1 changed files with 8 additions and 6 deletions

View File

@ -846,9 +846,10 @@ _first_around_vertex (Vertex_const_handle v,
// of v.
if (lowest_left == invalid_handle ||
(! curr->is_fictitious() &&
compare_y_at_x_left (curr->curve(),
lowest_left->curve(),
v->point()) == SMALLER))
(lowest_left->is_fictitious() ||
compare_y_at_x_left (curr->curve(),
lowest_left->curve(),
v->point()) == SMALLER)))
{
lowest_left = curr;
}
@ -859,9 +860,10 @@ _first_around_vertex (Vertex_const_handle v,
// of v.
if (top_right == invalid_handle ||
(! curr->is_fictitious() &&
compare_y_at_x_right (curr->curve(),
top_right->curve(),
v->point()) == LARGER))
(top_right->is_fictitious() ||
compare_y_at_x_right (curr->curve(),
top_right->curve(),
v->point()) == LARGER)))
{
top_right = curr;
}