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:
Georg Baum 2015-03-15 13:56:48 +01:00
parent 187c5f0ef5
commit 5bb7857bb2

View File

@ -68,6 +68,7 @@ MathAtom const & MathData::operator[](pos_type pos) const
void MathData::insert(size_type pos, MathAtom const & t) void MathData::insert(size_type pos, MathAtom const & t)
{ {
LBUFERR(pos <= size());
base_type::insert(begin() + pos, t); base_type::insert(begin() + pos, t);
} }