]> git.lyx.org Git - lyx.git/commitdiff
* paragraph_pimpl.C: eraseChars: assert "end >= start"
authorMichael Schmitt <michael.schmitt@teststep.org>
Sat, 11 Nov 2006 14:50:21 +0000 (14:50 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sat, 11 Nov 2006 14:50:21 +0000 (14:50 +0000)
rather than "end > start"; eraseChars is invoked
in cases in which no character is to be deleted

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15856 a592a061-630c-0410-9148-cb99ea01b6c8

src/paragraph_pimpl.C

index fc8fb8437402ca529064fa74d41747da4b113fb3..426862c246e3f8d04151b46d8ac03ef240cc1268 100644 (file)
@@ -337,7 +337,7 @@ bool Paragraph::Pimpl::eraseChar(pos_type pos, bool trackChanges)
 int Paragraph::Pimpl::eraseChars(pos_type start, pos_type end, bool trackChanges)
 {
        BOOST_ASSERT(start >= 0 && start <= size());
-       BOOST_ASSERT(end > start && end <= size() + 1);
+       BOOST_ASSERT(end >= start && end <= size() + 1);
 
        pos_type i = start;
        for (pos_type count = end - start; count; --count) {