]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathString.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathString.cpp
index d3fb9842413219bf95b842656374436a50d72cf2..44b450787716b2e5b255a15d859bb265195a6e87 100644 (file)
@@ -121,7 +121,7 @@ void InsetMathString::write(WriteStream & os) const
                char_type const c = *cit;
                try {
                        docstring command(1, c);
-                       if (c < 0x80 || Encodings::latexMathChar(c, command)) {
+                       if (c < 0x80 || Encodings::latexMathChar(c, os.encoding(), command)) {
                                if (os.textMode()) {
                                        if (in_forced_mode) {
                                                // we were inside \lyxmathsym