* 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
This commit is contained in:
Abdelrazak Younes 2006-11-13 16:59:10 +00:00
parent 2734cc1548
commit 03522cf7ca

View File

@ -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;
}