From: Abdelrazak Younes Date: Sun, 12 Nov 2006 13:12:59 +0000 (+0000) Subject: * LyXText::backspace(): redo paragraph rows. This is needed now because we don't... X-Git-Tag: 1.6.10~11910 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=df2aea27c6df0246ade98edd2874d6d2adabdbe1;p=features.git * 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 --- 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;