GRAPHICS: MACGUI: Correctly calculate row in MacText::getRowCol()

This commit is contained in:
Eugene Sandulenko 2017-08-03 19:25:39 +02:00
parent 0be9566a5a
commit 71aadb5645

View file

@ -454,6 +454,9 @@ void MacText::getRowCol(int x, int y, int *sx, int *sy, int *row, int *col) {
while (*row < _textLines.size() - 1 && _textLines[*row].y < y)
(*row)++;
if (*row)
(*row)--;
*sy = _textLines[*row].y;
*col = 0;