diff options
author | Eugene Sandulenko | 2017-01-31 19:06:27 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-31 19:06:27 +0100 |
commit | 0884aeeba3af63a4c12536b47440117cda68e2ec (patch) | |
tree | 6dbfe41fb88e702485a9e55fae8215050e9bef63 | |
parent | 89e8bdc444cb3d223b7970394f78131f9346e53e (diff) | |
download | scummvm-rg350-0884aeeba3af63a4c12536b47440117cda68e2ec.tar.gz scummvm-rg350-0884aeeba3af63a4c12536b47440117cda68e2ec.tar.bz2 scummvm-rg350-0884aeeba3af63a4c12536b47440117cda68e2ec.zip |
GRAPHICS: More fixes to MacText formatting
-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 |