]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.C
hopefully fix tex2lyx linking.
[lyx.git] / src / paragraph_pimpl.C
index ce44bf2968af07d391383a602972e70459741935..426862c246e3f8d04151b46d8ac03ef240cc1268 100644 (file)
@@ -280,10 +280,10 @@ bool Paragraph::Pimpl::eraseChar(pos_type pos, bool trackChanges)
                        return false;
        }
 
-       // Don't physically access nonexistent end-of-paragraph char
+       // Don't physically access the imaginary end-of-paragraph character.
+       // eraseChar() can only mark it as DELETED. A physical deletion of
+       // end-of-par must be handled externally.
        if (pos == size()) {
-               // FIXME: change tracking (MG)
-               // how do we handle end-of-pars previously marked inserted?
                return false;
        }
 
@@ -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) {