]> git.lyx.org Git - features.git/commitdiff
Fix bug #6292: Ensure the current language is set correctly after dissolving an Inset.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 29 Oct 2009 13:36:22 +0000 (13:36 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 29 Oct 2009 13:36:22 +0000 (13:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31790 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text.cpp

index 54ee423d1ad56307864e2f5691d1ce03bd5cf592..769285a14924a94ed54cd7d431fe558b50a7aff3 100644 (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;