]> git.lyx.org Git - lyx.git/blobdiff - src/Encoding.cpp
BufferParams.cpp: make Lithuanian documents compilable, fixes http://bugzilla.lyx...
[lyx.git] / src / Encoding.cpp
index 41f96420cb36d90d4773ad4d04b512c7f6d4430e..afaff6db41397086b25075aec473695b6e596f0b 100644 (file)
@@ -410,7 +410,8 @@ bool Encodings::latexMathChar(char_type c, bool mathmode,
                if (!encoding || command.empty()) {
                        command = it->second.textcommand;
                        addTextCmd(c);
-               } else if (mathmode)
+               }
+               if (mathmode)
                        addMathSym(c);
        }
        return use_math;
@@ -559,10 +560,6 @@ void Encodings::validate(char_type c, LaTeXFeatures & features, bool for_mathed)
                                } else
                                        features.addPreambleSnippet(it->second.textpreamble);
                        }
-                       if (for_mathed) {
-                               features.require("relsize");
-                               features.require("lyxmathsym");
-                       }
                }
        }
        if (for_mathed && isMathSym(c)) {