Cosmetics, and comment.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28552 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-02-19 03:24:51 +00:00
parent 0aca981637
commit 7ca8f5a5ec

View File

@ -216,13 +216,11 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
} }
// Prepare the paragraphs and insets for insertion. // Prepare the paragraphs and insets for insertion.
// A couple of insets store buffer references so need updating.
insertion.swap(in.paragraphs()); insertion.swap(in.paragraphs());
InsetIterator const i_end = inset_iterator_end(in); InsetIterator const i_end = inset_iterator_end(in);
for (InsetIterator it = inset_iterator_begin(in); it != i_end; ++it) { for (InsetIterator it = inset_iterator_begin(in); it != i_end; ++it) {
// Insets store buffer references so need updating.
it->setBuffer(const_cast<Buffer &>(buffer)); it->setBuffer(const_cast<Buffer &>(buffer));
switch (it->lyxCode()) { switch (it->lyxCode()) {