]> git.lyx.org Git - features.git/commitdiff
We need to do the update here simply because of the inset deletion.
authorRichard Heck <rgheck@comcast.net>
Mon, 9 May 2011 21:50:35 +0000 (21:50 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 9 May 2011 21:50:35 +0000 (21:50 +0000)
It must have been wrong before the updateBuffer() refactoring, too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38676 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text.cpp

index 6c899a95e8f7f65d86210de687f785cd7dfa85ce..c231bcea8e8526ef64b58d37caa154832a7190fc 100644 (file)
@@ -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());