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.pull/66/head
parent
4537444db5
commit
f5a37ae2fd
|
@ -1023,7 +1023,7 @@ void TextWindow::MouseEvent(bool leftClick, bool leftDown, double x, double y) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(r >= rows) {
|
if(r >= rows || c >= MAX_COLS) {
|
||||||
SetMousePointerToHand(false);
|
SetMousePointerToHand(false);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue