fix out-of-bounds access to a vector.

If the time axis view is not found, i will equal N, and _views[i] is out of bounds
This commit is contained in:
Paul Davis 2021-05-04 11:54:50 -06:00
parent 66aea6559b
commit 5bfc507cb3
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ RegionDrag::find_time_axis_view (TimeAxisView* t) const
++i;
}
if (_time_axis_views[i] != t) {
if (i == N) {
return -1;
}