X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeXFonts.cpp;h=ad65439b942df50f738a225e63a8a79cdc76390f;hb=88c285219b4c2a4a3fc88b08ba7d2bbc2c814353;hp=bc4151cb2502cb16c7888b0d0c71dc8db10cb955;hpb=670efa8f646218f2a378f0cc614c4c37a9f6b89a;p=lyx.git diff --git a/src/LaTeXFonts.cpp b/src/LaTeXFonts.cpp index bc4151cb25..ad65439b94 100644 --- a/src/LaTeXFonts.cpp +++ b/src/LaTeXFonts.cpp @@ -304,7 +304,7 @@ string const LaTeXFont::getLaTeXCode(bool dryrun, bool ot1, bool complete, bool os << altFont(osffont_).getLaTeXCode(dryrun, ot1, complete, sc, osf, nomath, scale); if (!preamble_.empty()) - os << preamble_; + os << to_utf8(preamble_); return os.str(); } @@ -373,7 +373,7 @@ bool LaTeXFont::readFont(Lexer & lex) error = true; continue; - default: + default: break; } switch (static_cast(le)) { @@ -420,7 +420,7 @@ bool LaTeXFont::readFont(Lexer & lex) lex >> packageoption_; break; case LF_PREAMBLE: - preamble_ = lex.getLongString("EndPreamble"); + preamble_ = lex.getLongString(from_ascii("EndPreamble")); break; case LF_PROVIDES: { lex.eatLine();