]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.C
hopefully fix tex2lyx linking.
[lyx.git] / src / paragraph_pimpl.C
index 7e311e5bd69b418112ffd5b7332a2a98e0dd0ab8..426862c246e3f8d04151b46d8ac03ef240cc1268 100644 (file)
@@ -78,15 +78,6 @@ Paragraph::Pimpl::Pimpl(Pimpl const & p, Paragraph * owner)
 }
 
 
-void Paragraph::Pimpl::setContentsFromPar(Paragraph const & par)
-{
-       owner_->text_ = par.text_;
-       // FIXME: change tracking (MG)
-       // check whether this method is really needed
-       changes_ = par.pimpl_->changes_;
-}
-
-
 bool Paragraph::Pimpl::isChanged(pos_type start, pos_type end) const
 {
        BOOST_ASSERT(start >= 0 && start <= size());
@@ -289,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;
        }
 
@@ -346,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) {