Fix bug #6292: Ensure the current language is set correctly after dissolving an Inset.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31790 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-10-29 13:36:22 +00:00
parent 424e3da04c
commit d0859f23d0

View File

@ -1616,6 +1616,9 @@ bool Text::dissolveInset(Cursor & cur)
// this is the least that needs to be done (bug 6003)
// in the above case, pasteParagraphList handles this
cur.buffer()->updateLabels();
// Ensure the current language is set correctly (bug 6292)
cur.text()->setCursor(cur, cur.pit(), cur.pos());
cur.clearSelection();
cur.resetAnchor();
return true;