Cursor::insert(): no reason to exclude mathed. Non willing math insets (MathChar) should provide a stub method for setBuffer().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23326 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-28 15:40:50 +00:00
parent 78d63575ca
commit 380ffa0c76

View File

@ -1023,10 +1023,9 @@ void Cursor::insert(Inset * inset)
{
if (inMathed())
insert(MathAtom(inset));
else {
else
text()->insertInset(*this, inset);
inset->setBuffer(bv_->buffer());
}
inset->setBuffer(bv_->buffer());
}