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:
parent
66aea6559b
commit
5bfc507cb3
|
@ -651,7 +651,7 @@ RegionDrag::find_time_axis_view (TimeAxisView* t) const
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_time_axis_views[i] != t) {
|
if (i == N) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user