]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.cpp
Preserve \inputencoding value when switching to non-TeX fonts.
[lyx.git] / src / mathed / MathParser.cpp
index 0fe6e0f416776409622d53086f583f65b9f2f8cf..3449cff5ac426fe85eb8f5750a716e68a6314878 100644 (file)
@@ -2081,7 +2081,7 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                                        Encodings::MATH_CMD | Encodings::TEXT_CMD,
                                                        is_combining, termination);
                                        }
-                                       if (c) {
+                                       if (c && buf->params().encoding().encodable(c)) {
                                                if (termination) {
                                                        if (nextToken().cat() == catBegin) {
                                                                getToken();