]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.cpp
Try even harder to obtain an instant preview
[lyx.git] / src / PDFOptions.cpp
index 62d0480e1f81bd11d4db2390d1103ac9cea5fa83..222be517e836779ad9502d8f9815ef3117d3eaaa 100644 (file)
@@ -150,7 +150,7 @@ void PDFOptions::writeLaTeX(OutputParams & runparams, otexstream & os,
        bool need_unicode = false;
        if (enc) {
                for (size_t n = 0; n < hs.size(); ++n) {
-                       if (enc->latexChar(hs[n], true) != docstring(1, hs[n]))
+                       if (!enc->encodable(hs[n]))
                                need_unicode = true;
                }
        }
@@ -243,7 +243,7 @@ string PDFOptions::readToken(Lexer &lex, string const & token)
 
 
 // check the string from UI
-string PDFOptions::quoted_options_check(string const str) const
+string PDFOptions::quoted_options_check(string const str) const
 {
        return subst(str, "\n", "");
 }