From 95bd716cdfe6e4bfc3a479ca735b8b8524be10cd Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 14 Jul 2009 12:21:35 +0000 Subject: [PATCH] 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 --- src/Text3.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2