diff options
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/mactext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 45e5249bc7..b3942f0d38 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -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; |