mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-01 07:10:14 +01:00
[scaled-font] Remove assert from cairo_scled_font_create()
The assert() is only correct for the normal paths, but failed on the error path. It has been run for long enough for me to be confident that the code is self-consistent, so I think I can now safely remove it.
This commit is contained in:
parent
93cfa7376f
commit
fcda9fc2f2
1 changed files with 4 additions and 1 deletions
|
|
@ -947,6 +947,10 @@ cairo_scaled_font_create (cairo_font_face_t *font_face,
|
|||
ctm,
|
||||
options);
|
||||
}
|
||||
|
||||
_cairo_scaled_font_init_key (&key, font_face,
|
||||
font_matrix, ctm, options);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1049,7 +1053,6 @@ cairo_scaled_font_create (cairo_font_face_t *font_face,
|
|||
scaled_font->original_font_face =
|
||||
cairo_font_face_reference (original_font_face);
|
||||
|
||||
assert (scaled_font->hash_entry.hash == key.hash_entry.hash);
|
||||
status = _cairo_hash_table_insert (font_map->hash_table,
|
||||
&scaled_font->hash_entry);
|
||||
if (likely (status == CAIRO_STATUS_SUCCESS)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue