]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.cpp
Fix shaded box UI color (#7395) as good as it gets ATM
[lyx.git] / src / PDFOptions.cpp
index 62d0480e1f81bd11d4db2390d1103ac9cea5fa83..7de277c3212162655a60fcd7b565c43dae64e35f 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;
                }
        }