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
This commit is contained in:
Abdelrazak Younes 2007-07-09 10:01:57 +00:00
parent fb77c3681e
commit 0c80805287

View 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;