From 974f396846f840f4b6880351f8a52da983bf5d9f Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 13 Jan 2019 11:38:28 +0100 Subject: [PATCH] Fix copy-paste error --- src/Paragraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 457222ee37..4977c2f275 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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("}"); } -- 2.39.5