]> git.lyx.org Git - features.git/blobdiff - src/text2.C
get rid of InsetError users
[features.git] / src / text2.C
index 92939fcae503430b8c712880bd288a5751bae442..9cc7edc767f2da8ecff50d219e4442a193e6ba1b 100644 (file)
@@ -19,6 +19,7 @@
 #include "undo_funcs.h"
 #include "buffer.h"
 #include "bufferparams.h"
+#include "errorlist.h"
 #include "gettext.h"
 #include "BufferView.h"
 #include "CutAndPaste.h"
@@ -1406,10 +1407,15 @@ void LyXText::pasteSelection()
        ParagraphList::iterator endpit;
        PitPosPair ppp;
 
+       ErrorList el;
+
        boost::tie(ppp, endpit) =
                CutAndPaste::pasteSelection(ownerParagraphs(),
                                            cursor.par(), cursor.pos(),
-                                           bv()->buffer()->params.textclass);
+                                           bv()->buffer()->params.textclass,
+                                           el);
+       bv()->setErrorList(el);
+       bv()->showErrorList(_("Paste"));
 
        redoParagraphs(cursor, endpit);