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:
parent
79d26045bb
commit
f790148bf6
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue