From: Jean-Marc Lasgouttes Date: Tue, 14 Jul 2009 12:21:35 +0000 (+0000) Subject: replace gratuitously complicated code by sane one, and make cursor leave inset after... X-Git-Tag: 2.0.0~6031 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=95bd716cdfe6e4bfc3a479ca735b8b8524be10cd;p=features.git replace gratuitously complicated code by sane one, and make cursor leave inset after inserting an index git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30561 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 5f32da6e22..fe8b508b16 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -240,8 +240,8 @@ static bool doInsertInset(Cursor & cur, Text * text, if (edit) inset->edit(cur, true); // Now put this into inset - static_cast(inset)-> - text().insertStringAsParagraphs(cur, ds); + cur.text()->insertStringAsLines(cur, ds); + cur.leaveInset(*inset); return true; }