forked from mia/Aegisub
Prevent an out of range exception from being thrown. (was commonly being thrown when commit was used on the last row of the grid)
Originally committed to SVN as r2945.
This commit is contained in:
parent
ef407b6e68
commit
008f7f3853
1 changed files with 1 additions and 0 deletions
|
@ -224,6 +224,7 @@ void BaseGrid::ClearSelection() {
|
||||||
/////////////////////////
|
/////////////////////////
|
||||||
// Is cell in selection?
|
// Is cell in selection?
|
||||||
bool BaseGrid::IsInSelection(int row, int col) const {
|
bool BaseGrid::IsInSelection(int row, int col) const {
|
||||||
|
if (row >= GetRows() || row < 0) return false;
|
||||||
(void) col;
|
(void) col;
|
||||||
try {
|
try {
|
||||||
return selMap.at(row);
|
return selMap.at(row);
|
||||||
|
|
Loading…
Reference in a new issue