summaryrefslogtreecommitdiff
path: root/src/cairo-path-fixed.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2010-10-21 17:24:30 +0200
committerAndrea Canciani <ranma42@gmail.com>2010-10-29 17:31:23 +0200
commit568a975a62fde8d4dfaef2086c4f40e3354ba43b (patch)
treec4ddfafa7586012138a4bb025bc55fc3a5ca2499 /src/cairo-path-fixed.c
parent929571b4b56d56c669eb4cbb3e109e2bd4620fb0 (diff)
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).
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r--src/cairo-path-fixed.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index f6b6cb456..5b2bcbef6 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -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;
}