]> git.lyx.org Git - features.git/commitdiff
Another assertion that got transformed in 1b1f8dd2
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 27 Apr 2013 18:14:43 +0000 (20:14 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 27 Apr 2013 18:14:43 +0000 (20:14 +0200)
src/mathed/MathData.cpp

index 4967118e811733d103bad564077c691ddecba102..2ad3309af02901985509b91f6ba2f1c86338046a 100644 (file)
@@ -74,7 +74,7 @@ void MathData::insert(size_type pos, MathAtom const & t)
 
 void MathData::insert(size_type pos, MathData const & ar)
 {
-       LBUFERR(pos < size(), _("Invalid MathData."));
+       LBUFERR(pos <= size(), _("Invalid MathData."));
        base_type::insert(begin() + pos, ar.begin(), ar.end());
 }