mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 04:38:04 +02:00
[cairo-pattern] Assert that the pattern->matrix is invertible.
We guarantee when setting the pattern->matrix that it is invertible, so merely assert that it is so when we attempt to use its inverse.
This commit is contained in:
parent
7d853bcabc
commit
50ebdda3a9
1 changed files with 2 additions and 2 deletions
|
|
@ -1979,8 +1979,8 @@ _cairo_pattern_get_extents (cairo_pattern_t *pattern,
|
|||
|
||||
imatrix = pattern->matrix;
|
||||
status = cairo_matrix_invert (&imatrix);
|
||||
if (status)
|
||||
return status;
|
||||
/* cairo_pattern_set_matrix ensures the matrix is invertible */
|
||||
assert (status == CAIRO_STATUS_SUCCESS);
|
||||
|
||||
/* XXX Use _cairo_matrix_transform_bounding_box here */
|
||||
for (sy = 0; sy <= 1; sy++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue