]> git.lyx.org Git - lyx.git/commitdiff
Fix bug 3990: Wrong Paste Message between document with different Document Style
authorAbdelrazak Younes <younes@lyx.org>
Mon, 9 Jul 2007 10:01:57 +0000 (10:01 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 9 Jul 2007 10:01:57 +0000 (10:01 +0000)
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

index e05c9f06c3d8ed3bb098f7d53134bf192e226927..d4af4f1e4595153ad48f3666170ef77294ed819c 100644 (file)
@@ -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;