Fix dead-lock in characters layout calc regression from e8aa2f922b

This commit is contained in:
Wojtek Figat
2023-04-22 18:00:25 +02:00
parent 55621054d8
commit 9e222d222c

View File

@@ -211,7 +211,7 @@ void Font::ProcessText(const StringView& text, Array<FontLineCache>& outputLines
{
cursorX = lastUpperX;
tmpLine.LastCharIndex = lastUpperIndex - 1;
currentIndex = lastUpperIndex;
currentIndex = lastUpperIndex + 1;
nextCharIndex = currentIndex;
}
else if (lastUnderscoreIndex != INVALID_INDEX)