From c7f83cd43565cf1166c40a0d4cc4d9ddb4f6d866 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 4 Aug 2017 07:50:15 +0200 Subject: [PATCH] GRAPHICS: MACGUI: Fix end line text selection hihglight --- graphics/macgui/mactext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 4647f9c3002..d3a612c22c0 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -455,7 +455,7 @@ void MacText::getRowCol(int x, int y, int *sx, int *sy, int *row, int *col) { (*row)--; if (y > _textMaxHeight) - x = getLineWidth(*row); + x = _surface->w; *sy = _textLines[*row].y;