diff options
-rw-r--r-- | graphics/macgui/mactext.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index ed3cddb513..6a3deb2c81 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -128,6 +128,8 @@ void MacText::splitString(Common::String &str) { _text[curLine] += text[0]; + nextChunk = false; + continue; } @@ -140,6 +142,10 @@ void MacText::splitString(Common::String &str) { (_textLines[curLine])[0].text = text[i]; curChunk = 0; } + } else { + if (nextChunk) { // No text, replacing formatting + (_textLines[curLine])[curChunk] = _currentFormatting; + } } if (!nextChunk) // Don't skip next character |