From 0884aeeba3af63a4c12536b47440117cda68e2ec Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 31 Jan 2017 19:06:27 +0100 Subject: GRAPHICS: More fixes to MacText formatting --- graphics/macgui/mactext.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3