diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index edd8089457..fe73aa8965 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -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); }