mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-11 06:00:33 +01:00
[cairo-scaled-font] Add missing matrix guard to cairo_scaled_font_create().
cairo_scaled_font_create() did not check the user supplied ctm was valid, triggering an assertion later when computing the scale factors.
This commit is contained in:
parent
3f59ef9548
commit
8d6249b2c1
1 changed files with 3 additions and 0 deletions
|
|
@ -608,6 +608,9 @@ cairo_scaled_font_create (cairo_font_face_t *font_face,
|
|||
if (! _cairo_matrix_is_invertible (font_matrix))
|
||||
return (cairo_scaled_font_t *)&_cairo_scaled_font_nil;
|
||||
|
||||
if (! _cairo_matrix_is_invertible (ctm))
|
||||
return (cairo_scaled_font_t *)&_cairo_scaled_font_nil;
|
||||
|
||||
font_map = _cairo_scaled_font_map_lock ();
|
||||
if (font_map == NULL)
|
||||
return (cairo_scaled_font_t *)&_cairo_scaled_font_nil;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue