Browse Source

Text layout fix for single-character strings.

tags/2021-05-28
jules 12 years ago
parent
commit
f790148bf6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_graphics/fonts/juce_TextLayout.cpp

+ 1
- 1
modules/juce_graphics/fonts/juce_TextLayout.cpp View File

@@ -526,7 +526,7 @@ namespace TextLayoutHelpers
}
}
if (i > 0 && (newFontAndColour != lastFontAndColour || i == stringLength - 1))
if ((i > 0 && newFontAndColour != lastFontAndColour) || i == stringLength - 1)
{
runAttributes.add (RunAttribute (lastFontAndColour,
Range<int> (rangeStart, (i < stringLength - 1) ? i : (i + 1))));


Loading…
Cancel
Save