]> git.lyx.org Git - features.git/commitdiff
* LyXText::backspace(): redo paragraph rows. This is needed now because we don't...
authorAbdelrazak Younes <younes@lyx.org>
Sun, 12 Nov 2006 13:12:59 +0000 (13:12 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 12 Nov 2006 13:12:59 +0000 (13:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15882 a592a061-630c-0410-9148-cb99ea01b6c8

src/text.C

index be22fb835d3337b12037293ef62c0eeca3afedd6..456118fd1ca84c7af8166f77a849a6144e1fb8e5 100644 (file)
@@ -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;