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:
parent
c2ecde591b
commit
67e3326ecf
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue