]> git.lyx.org Git - features.git/commitdiff
Cursor::insert(): no reason to exclude mathed. Non willing math insets (MathChar...
authorAbdelrazak Younes <younes@lyx.org>
Thu, 28 Feb 2008 15:40:50 +0000 (15:40 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 28 Feb 2008 15:40:50 +0000 (15:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23326 a592a061-630c-0410-9148-cb99ea01b6c8

src/Cursor.cpp

index 05617f4c19dd093032849249f7e88fd19cc0babf..aa0a27ac1087e74d7c72f099b464d7fa69b7dbbb 100644 (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());
 }