Author: rgheck
Date: Mon May 9 23:51:45 2011
New Revision: 38677
URL: http://www.lyx.org/trac/changeset/38677
Log:
We need to do the update here simply because of the inset deletion.
It must have been wrong before the updateBuffer() refactoring, too.
Modified:
lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp
Modified: lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp
==============================================================================
--- lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp Mon May 9 23:50:35
2011 (r38676)
+++ lyx-devel/branches/BRANCH_2_0_X/src/Text.cpp Mon May 9 23:51:45
2011 (r38677)
@@ -1655,8 +1655,9 @@
// restore position
cur.pit() = min(cur.lastpit(), spit);
cur.pos() = min(cur.lastpos(), spos);
- } else
- cur.forceBufferUpdate();
+ }
+
+ cur.forceBufferUpdate();
// Ensure the current language is set correctly (bug 6292)
cur.text()->setCursor(cur, cur.pit(), cur.pos());