]> git.lyx.org Git - lyx.git/blobdiff - src/undo.C
Fix bug 2029 (RtL space width)
[lyx.git] / src / undo.C
index 1a854a192c23af5f132b204203b62139aeebb4b6..075697facf327a269aa10b19d4b71dc12c50558e 100644 (file)
@@ -93,10 +93,10 @@ void doRecordUndo(Undo::undo_kind kind,
                // record the relevant paragraphs
                LyXText const * text = cell.text();
                BOOST_ASSERT(text);
-               ParagraphList & plist = text->paragraphs();
-               ParagraphList::iterator first = plist.begin();
+               ParagraphList const & plist = text->paragraphs();
+               ParagraphList::const_iterator first = plist.begin();
                advance(first, first_pit);
-               ParagraphList::iterator last = plist.begin();
+               ParagraphList::const_iterator last = plist.begin();
                advance(last, last_pit + 1);
                undo.pars = ParagraphList(first, last);
        }