mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
* 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:
parent
2734cc1548
commit
03522cf7ca
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user