mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
0aca981637
commit
7ca8f5a5ec
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user