]> git.lyx.org Git - lyx.git/commitdiff
Fix #7274.
authorRichard Heck <rgheck@comcast.net>
Wed, 2 Feb 2011 16:43:02 +0000 (16:43 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 2 Feb 2011 16:43:02 +0000 (16:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37423 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 713a016d2323a38dae637a94cdd9f073fc05d22e..081b3dc6cde4313b07f98e6cecf15c290040de64 100644 (file)
@@ -245,7 +245,8 @@ static bool doInsertInset(Cursor & cur, Text * text,
                if (edit)
                        inset->edit(cur, true);
                // Now put this into inset
-               cur.text()->insertStringAsLines(cur, ds, Font(inherit_font));
+               Font const f(inherit_font, cur.current_font.language());
+               cur.text()->insertStringAsLines(cur, ds, f);
                cur.leaveInset(*inset);
                return true;
        }