]> git.lyx.org Git - features.git/commitdiff
replace gratuitously complicated code by sane one, and make cursor leave inset after...
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 14 Jul 2009 12:21:35 +0000 (12:21 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 14 Jul 2009 12:21:35 +0000 (12:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30561 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 5f32da6e22de7cf0616fecc225c4b69c71bfbacd..fe8b508b1676c7e4e1582a02dbe8739eac4de2da 100644 (file)
@@ -240,8 +240,8 @@ static bool doInsertInset(Cursor & cur, Text * text,
                if (edit)
                        inset->edit(cur, true);
                // Now put this into inset
-               static_cast<InsetCollapsable *>(inset)->
-                               text().insertStringAsParagraphs(cur, ds);
+               cur.text()->insertStringAsLines(cur, ds);
+               cur.leaveInset(*inset);
                return true;
        }