diff options
author | Eugene Sandulenko | 2017-08-07 22:17:26 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-08 11:25:55 +0200 |
commit | 0e2d14ac415faeec25226cef64b3443b0905eff9 (patch) | |
tree | ed8e392683cda5e5bb02279dcdc09beb7b15290a /graphics/macgui/mactext.cpp | |
parent | aef786fcc3b93670ce980f37d44fea48955d9d3a (diff) | |
download | scummvm-rg350-0e2d14ac415faeec25226cef64b3443b0905eff9.tar.gz scummvm-rg350-0e2d14ac415faeec25226cef64b3443b0905eff9.tar.bz2 scummvm-rg350-0e2d14ac415faeec25226cef64b3443b0905eff9.zip |
GRAPHICS: MACGUI: Initial code for Cutting/Paste multiline input texts
Diffstat (limited to 'graphics/macgui/mactext.cpp')
-rw-r--r-- | graphics/macgui/mactext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 9db5d459d7..8168962479 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -498,7 +498,7 @@ void MacText::getRowCol(int x, int y, int *sx, int *sy, int *row, int *col) { } } -Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int endCol, bool formatted) { +Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int endCol, bool formatted, bool newlines) { Common::String res; startRow = CLIP(startRow, 0, (int)_textLines.size() - 1); @@ -567,7 +567,8 @@ Common::String MacText::getTextChunk(int startRow, int startCol, int endRow, int res += _textLines[i].chunks[chunk].text; } - res += '\n'; + if (newlines) + res += '\n'; } } |