Skip to content

Commit

Permalink
GRAPHICS: MACGUI: Fix MacText::getTextChunk() for multiline selections
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 15, 2017
1 parent 5eda2be commit 0f0dd88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graphics/macgui/mactext.cpp
Expand Up @@ -544,6 +544,10 @@ Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int

startCol -= _textLines[i].chunks[chunk].text.size();
}
if (newlines)
res += '\n';
else
res += ' ';
} else if (i == endRow) {
for (uint chunk = 0; chunk < _textLines[i].chunks.size(); chunk++) {
if (formatted)
Expand All @@ -569,6 +573,8 @@ Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int

if (newlines)
res += '\n';
else
res += ' ';
}
}

Expand Down

0 comments on commit 0f0dd88

Please sign in to comment.