mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibWeb: Add missing null check in font_with_point_size()
This commit is contained in:
committed by
Andreas Kling
parent
6e4d5b310f
commit
de4b240429
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user