From df2aea27c6df0246ade98edd2874d6d2adabdbe1 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 12 Nov 2006 13:12:59 +0000 Subject: [PATCH] * LyXText::backspace(): redo paragraph rows. This is needed now because we don't do this automatically at each setCursor() call. More of this kind of fixes will probably come. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15882 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/text.C b/src/text.C index be22fb835d..456118fd1c 100644 --- a/src/text.C +++ b/src/text.C @@ -1764,6 +1764,10 @@ bool LyXText::backspace(LCursor & cur) if (cur.pos() == cur.lastpos()) setCurrentFont(cur); + // FIXME: back spacing have 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. + redoParagraph(cur.bv(), cur.pit()); setCursor(cur, cur.pit(), cur.pos(), false, cur.boundary()); return needsUpdate; -- 2.39.2