]> git.lyx.org Git - features.git/blobdiff - src/tex2lyx/text.cpp
Fix misparsing of \textgreek without polyglossia
[features.git] / src / tex2lyx / text.cpp
index c899fb2c4ee7d7d7fd74bf7470cb6a9af7855095..f1537df41135f9de9f31db60a7688dd5813080d3 100644 (file)
@@ -3746,7 +3746,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                              context.font.language, lang);
                }
 
-               else if (prefixIs(t.cs(), "text")
+               else if (prefixIs(t.cs(), "text") && preamble.usePolyglossia()
                         && is_known(t.cs().substr(4), preamble.polyglossia_languages)) {
                        // scheme is \textLANGUAGE{text} where LANGUAGE is in polyglossia_languages[]
                        string lang;