mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb: Add missing null check in font_with_point_size()
This commit is contained in:
parent
6e4d5b310f
commit
de4b240429
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,8 @@ struct StyleComputer::MatchingFontCandidate {
|
|||
return font_list;
|
||||
}
|
||||
|
||||
font_list->add(*loader_or_typeface.get<Gfx::Typeface const*>()->get_font(point_size));
|
||||
if (auto font = loader_or_typeface.get<Gfx::Typeface const*>()->get_font(point_size))
|
||||
font_list->add(*font);
|
||||
return font_list;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue