From 0e2d14ac415faeec25226cef64b3443b0905eff9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 7 Aug 2017 22:17:26 +0200 Subject: GRAPHICS: MACGUI: Initial code for Cutting/Paste multiline input texts --- graphics/macgui/mactext.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'graphics/macgui/mactext.cpp') 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'; } } -- cgit v1.2.3