mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix for Typeface::clearTypefaceCache()
This commit is contained in:
parent
d77418efed
commit
625395fc98
1 changed files with 2 additions and 4 deletions
|
|
@ -64,6 +64,7 @@ public:
|
|||
void clear()
|
||||
{
|
||||
setSize (faces.size());
|
||||
defaultFace = nullptr;
|
||||
}
|
||||
|
||||
Typeface::Ptr findTypefaceFor (const Font& font)
|
||||
|
|
@ -127,10 +128,7 @@ public:
|
|||
private:
|
||||
struct CachedFace
|
||||
{
|
||||
CachedFace() noexcept
|
||||
: lastUsageCount (0)
|
||||
{
|
||||
}
|
||||
CachedFace() noexcept : lastUsageCount (0) {}
|
||||
|
||||
// Although it seems a bit wacky to store the name here, it's because it may be a
|
||||
// placeholder rather than a real one, e.g. "<Sans-Serif>" vs the actual typeface name.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue