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:
Andrea Canciani 2010-10-21 17:24:30 +02:00
parent 929571b4b5
commit 568a975a62

View file

@ -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;
}