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

See also f5a37ae.
pull/97/head
whitequark 2016-11-05 17:04:34 +00:00
parent d151eb56fc
commit afecbccb0f
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ Other new features:
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

@ -1024,7 +1024,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);
hoveredRow = r;