]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
Let tm be a reference here as elsewhere
[lyx.git] / src / Paragraph.cpp
index 457222ee37efa098fb8f1479e7c114db18f1a966..4977c2f275624bc9628eda4d17395a16ebfc2e35 100644 (file)
@@ -928,8 +928,8 @@ int Paragraph::Private::latexSurrogatePair(BufferParams const & bparams,
                latex2 = latex2.substr(pos, length);
                // We only need the script macro with non-native font encodings
                // and with XeTeX/LuaTeX (with TeX fonts)
-               if (!Encodings::needsScriptWrapper(script, fontenc)
-                   && !runparams.isFullUnicode()) {
+               if (Encodings::needsScriptWrapper(script, fontenc)
+                   || runparams.isFullUnicode()) {
                        scriptmacro = from_ascii("\\" + script + "{");
                        cb = from_ascii("}");
                }