From 03522cf7ca097002254c2166301b0e723ea50894 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 13 Nov 2006 16:59:10 +0000 Subject: [PATCH] * LyXText::erase(): make sure the paragraph breaking is up to date. This might be not needed with current svn but will be needed for the future optimize-drawing patch. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15905 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/text.C b/src/text.C index e1b7320c64..4baf4a27f0 100644 --- a/src/text.C +++ b/src/text.C @@ -1672,8 +1672,14 @@ bool LyXText::erase(LCursor & cur) needsUpdate = dissolveInset(cur); // Make sure the cursor is correct. Is this really needed? - if (needsUpdate) + // FIXME: Inserting characters has nothing to do with setting a cursor. + // Because of the mix between the model (the paragraph contents) + // and the view (the paragraph breaking in rows, we have to do this + // here before the setCursorIntern() call. + if (needsUpdate) { + redoParagraph(cur.bv(), cur.pit()); setCursorIntern(cur, cur.pit(), cur.pos()); + } return needsUpdate; } -- 2.39.2