diff options
author | Eugene Sandulenko | 2017-02-04 15:31:44 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-04 15:31:44 +0100 |
commit | 91d85feace2588c4e9673148e453e8a6fdc0bcb5 (patch) | |
tree | d2b7b3904e2c907d2668383f13a563ea4d4241c9 /graphics/macgui/mactext.cpp | |
parent | 87237f633f2f37e9e3dd503daea439426fbca8e3 (diff) | |
download | scummvm-rg350-91d85feace2588c4e9673148e453e8a6fdc0bcb5.tar.gz scummvm-rg350-91d85feace2588c4e9673148e453e8a6fdc0bcb5.tar.bz2 scummvm-rg350-91d85feace2588c4e9673148e453e8a6fdc0bcb5.zip |
GRAPHICS: Correctly process empty lines in MacText
Diffstat (limited to 'graphics/macgui/mactext.cpp')
-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; } } |