GRAPHICS: MACGUI: Correctly calculate row in MacText::getRowCol()
This commit is contained in:
parent
0be9566a5a
commit
71aadb5645
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue