OS X: fix out-of-bounds TW.META access.
For some reason OS X can post pointer events far outside the window rect, so be defensive here.
This commit is contained in:
parent
4c022f8d79
commit
e1d6dac87a
|
@ -988,7 +988,7 @@ void TextWindow::MouseEvent(bool leftClick, bool leftDown, double x, double y) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(r >= rows) {
|
||||
if(r >= rows || c >= MAX_COLS) {
|
||||
SetMousePointerToHand(false);
|
||||
goto done;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user