1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fonts: Avoid segfaulting on Linux when there are no installed fonts

This commit is contained in:
reuk 2022-05-03 11:44:03 +01:00
parent c2ecde591b
commit 67e3326ecf
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -156,7 +156,7 @@ private:
if (name.containsIgnoreCase (choice.name))
return Characteristics { name }.withStyle (choice.style);
return Characteristics { *names.begin() };
return Characteristics { names[0] };
}
static Characteristics getDefaultSansSerifFontCharacteristics()