diff options
-rw-r--r-- | graphics/macgui/mactext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 66a041eeac..4c0229218d 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -162,6 +162,11 @@ void MacText::splitString(Common::String &str) { } else { if (nextChunk) { // No text, replacing formatting _textLines[curLine].chunks[curChunk] = _currentFormatting; + } else { // Otherwise it is an empty line + curLine++; + _textLines.resize(curLine + 1); + _textLines[curLine].chunks.push_back(previousFormatting); + curChunk = 0; } } |