OS X: fix another out-of-bounds TW.META access.

See also e1d6dac.
This commit is contained in:
whitequark 2016-11-05 17:04:34 +00:00
parent 0b2fc34de1
commit 74d8621f53
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Changelog
Bug fixes:
* Do not crash when applying a symmetry constraint to two points.
* Fix TTF font metrics again (properly this time).
* Various minor crashes.
2.2
---

View File

@ -988,7 +988,7 @@ void TextWindow::MouseEvent(bool leftClick, bool leftDown, double x, double y) {
break;
}
}
if(r >= rows || c >= MAX_COLS) {
if(r < 0 || c < 0 || r >= rows || c >= MAX_COLS) {
SetMousePointerToHand(false);
goto done;
}