]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5285 .
[lyx.git] / src / Buffer.cpp
index 1a769cf0baf9369cdfc04eca2c72967e0fe225fc..5617a690dcb098c1d6c909a0af625061394947c0 100644 (file)
@@ -1022,6 +1022,9 @@ void Buffer::writeLaTeXSource(odocstream & os,
 
        OutputParams runparams = runparams_in;
 
+       // Classify the unicode characters appearing in math insets
+       Encodings::initUnicodeMath(*this);
+
        // validate the buffer.
        LYXERR(Debug::LATEX, "  Validating buffer...");
        LaTeXFeatures features(*this, params(), runparams);
@@ -1232,7 +1235,7 @@ void Buffer::writeDocBookSource(odocstream & os, string const & fname,
        if (runparams.flavor == OutputParams::XML)
                top += params().language->code();
        else
-               top += params().language->code().substr(0,2);
+               top += params().language->code().substr(0, 2);
        top += '"';
 
        if (!params().options.empty()) {