1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

GlyphArrangement: Avoid divide-by-zero in addFittedText

This commit is contained in:
reuk 2024-05-20 18:44:20 +01:00
parent 00c958ff3e
commit 66a29f9762
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -306,7 +306,7 @@ void GlyphArrangement::addFittedText (const Font& f,
maximumLines = jmin (maximumLines, length);
auto font = f;
float cumulativeLineLengths{};
auto cumulativeLineLengths = font.getHeight() * 1.4f;
while (numLines < maximumLines)
{