From: Abdelrazak Younes Date: Mon, 9 Jul 2007 10:01:57 +0000 (+0000) Subject: Fix bug 3990: Wrong Paste Message between document with different Document Style X-Git-Tag: 1.6.10~9190 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0c80805287002c70e2273fa8276d13adb9860950;p=lyx.git 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 --- 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;