From 380ffa0c765bfd065bb13c9e823465a9a3b9cc2c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 28 Feb 2008 15:40:50 +0000 Subject: [PATCH] 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 --- src/Cursor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 05617f4c19..aa0a27ac10 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -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()); }