* 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
This commit is contained in:
Abdelrazak Younes 2006-11-12 13:12:59 +00:00
parent dd0983e31c
commit df2aea27c6

View File

@ -1764,6 +1764,10 @@ bool LyXText::backspace(LCursor & cur)
if (cur.pos() == cur.lastpos()) if (cur.pos() == cur.lastpos())
setCurrentFont(cur); 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()); setCursor(cur, cur.pit(), cur.pos(), false, cur.boundary());
return needsUpdate; return needsUpdate;