1
0
Fork 0
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:
hogliux 2015-04-08 10:41:24 +01:00
parent 7a370a9019
commit 1986f9b2ad

View file

@ -635,4 +635,9 @@ void TextLayout::recalculateSize (const AttributedString& text)
width = bounds.getWidth();
height = bounds.getHeight();
}
else
{
width = 0;
height = 0;
}
}