From: Richard Heck Date: Mon, 9 May 2011 21:51:45 +0000 (+0000) Subject: We need to do the update here simply because of the inset deletion. X-Git-Tag: 2.0.1~326 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3649716644ce9fa8fc611c71300ae65fee9fafb0;p=features.git We need to do the update here simply because of the inset deletion. It must have been wrong before the updateBuffer() refactoring, too. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@38677 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/Text.cpp b/src/Text.cpp index 6c899a95e8..c231bcea8e 100644 --- a/src/Text.cpp +++ b/src/Text.cpp @@ -1655,8 +1655,9 @@ bool Text::dissolveInset(Cursor & cur) // 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());