mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Add missing check
The other insert method has this as well, and it is indeed a problem is pos points outside the vector.
This commit is contained in:
parent
187c5f0ef5
commit
5bb7857bb2
@ -68,6 +68,7 @@ MathAtom const & MathData::operator[](pos_type pos) const
|
||||
|
||||
void MathData::insert(size_type pos, MathAtom const & t)
|
||||
{
|
||||
LBUFERR(pos <= size());
|
||||
base_type::insert(begin() + pos, t);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user