[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:
Chris Wilson 2007-07-19 10:26:37 +01:00
parent 7d853bcabc
commit 50ebdda3a9

View file

@ -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++) {