]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.cpp
tex2lyx: fix a regression
[lyx.git] / src / tex2lyx / tex2lyx.cpp
index b713e4c76dab30d991afc37238db8dced7e4b467..a7f83c25a34c41c449753b3b080e301cc7ea21f2 100644 (file)
@@ -673,7 +673,7 @@ bool tex2lyx(idocstream & is, ostream & os, string encoding)
        stringstream ss;
        // store the document language in the context to be able to handle the
        // commands like \foreignlanguage and \textenglish etc.
-       context.font.language = preamble.h_language;
+       context.font.language = preamble.language();
        // parse the main text
        parse_text(p, ss, FLAG_END, true, context);
        if (Context::empty)