]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettext.C
change tracking:
[lyx.git] / src / insets / insettext.C
index 39fe2606a0dec3944c94069f30013c23009e9b87..96c7dcdf8e546dfb5f0874ef5513c8273c0db20a 100644 (file)
@@ -284,6 +284,18 @@ void InsetText::acceptChanges()
 }
 
 
+void InsetText::rejectChanges()
+{
+       ParagraphList::iterator pit = paragraphs().begin();
+       ParagraphList::iterator end = paragraphs().end();
+       for (; pit != end; ++pit) {
+               // FIXME: change tracking (MG)
+               // we must handle end-of-par chars!
+               pit->rejectChanges(0, pit->size() + 1);
+       }
+}
+
+
 int InsetText::latex(Buffer const & buf, odocstream & os,
                     OutputParams const & runparams) const
 {