mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
path: Cleanup _cairo_path_fixed_iter_at_end
The last operation of a path cannot be a move_to anymore (since move_to is only added if another operation is added after it).
This commit is contained in:
parent
929571b4b5
commit
568a975a62
1 changed files with 1 additions and 10 deletions
|
|
@ -1426,14 +1426,5 @@ _cairo_path_fixed_iter_at_end (const cairo_path_fixed_iter_t *iter)
|
|||
if (iter->buf == NULL)
|
||||
return TRUE;
|
||||
|
||||
if (iter->n_op == iter->buf->num_ops)
|
||||
return TRUE;
|
||||
|
||||
if (iter->buf->op[iter->n_op] == CAIRO_PATH_OP_MOVE_TO &&
|
||||
iter->buf->num_ops == iter->n_op + 1)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return iter->n_op == iter->buf->num_ops;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue