GRAPHICS: Correctly process empty lines in MacText

This commit is contained in:
Eugene Sandulenko 2017-02-04 15:31:44 +01:00
parent 87237f633f
commit 91d85feace

View file

@ -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;
}
}