GRAPHICS: Correctly process empty lines in MacText
This commit is contained in:
parent
87237f633f
commit
91d85feace
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue