1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Text layout fix for single-character strings.

This commit is contained in:
jules 2013-05-15 11:15:39 -06:00
parent 79d26045bb
commit f790148bf6

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))));