mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix TextLayout height when string is empty
This commit is contained in:
parent
7a370a9019
commit
1986f9b2ad
1 changed files with 5 additions and 0 deletions
|
|
@ -635,4 +635,9 @@ void TextLayout::recalculateSize (const AttributedString& text)
|
|||
width = bounds.getWidth();
|
||||
height = bounds.getHeight();
|
||||
}
|
||||
else
|
||||
{
|
||||
width = 0;
|
||||
height = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue