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:
parent
00c958ff3e
commit
66a29f9762
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue