From 0c80805287002c70e2273fa8276d13adb9860950 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 9 Jul 2007 10:01:57 +0000 Subject: [PATCH] Fix bug 3990: Wrong Paste Message between document with different Document Style http://bugzilla.lyx.org/show_bug.cgi?id=3990 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19008 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/CutAndPaste.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index e05c9f06c3..d4af4f1e45 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -413,6 +413,8 @@ docstring grabAndEraseSelection(Cursor & cur) void switchBetweenClasses(textclass_type c1, textclass_type c2, InsetText & in, ErrorList & errorlist) { + errorlist.clear(); + BOOST_ASSERT(!in.paragraphs().empty()); if (c1 == c2) return; -- 2.39.2