mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-10 18:40:24 +01:00
path: Make _cairo_path_fixed_last_op assert on empty path
_cairo_path_fixed_last_op should now only be used on non-empty path (to test if the previous operation was a line_to).
This commit is contained in:
parent
568a975a62
commit
17fef2fe4d
1 changed files with 1 additions and 2 deletions
|
|
@ -375,8 +375,7 @@ _cairo_path_fixed_last_op (cairo_path_fixed_t *path)
|
|||
cairo_path_buf_t *buf;
|
||||
|
||||
buf = cairo_path_tail (path);
|
||||
if (buf->num_ops == 0)
|
||||
return -1;
|
||||
assert (buf->num_ops != 0);
|
||||
|
||||
return buf->op[buf->num_ops - 1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue