]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Allow using \binom without amsmath and add support for \brace and \brack
[lyx.git] / src / CutAndPaste.cpp
index 093eabee0e2284ad0887b0cdc7b5f6d193ca0806..9d5b97fe546112a4eeafa5525f77b6fa1cdc68db 100644 (file)
@@ -140,7 +140,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
        }
 
        // Make sure there is no class difference.
-       InsetText in(cur.buffer());
+       InsetText in;
        // This works without copying any paragraph data because we have
        // a specialized swap method for ParagraphList. This is important
        // since we store pointers to insets at some places and we don't
@@ -194,7 +194,7 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
        }
 
        // Prepare the paragraphs and insets for insertion.
-       // Insets store buffer references so need updating.
+       // A couple of insets store buffer references so need updating.
        insertion.swap(in.paragraphs());
 
        InsetIterator const i_end = inset_iterator_end(in);