]> git.lyx.org Git - lyx.git/blobdiff - src/Font.cpp
Differentiate backups from autosave files (#12659)
[lyx.git] / src / Font.cpp
index 7b7585df20fa15496653a393ad8e98e5cbf24c11..0e4aa2b24b42cef0192685998baa12eaa19d515e 100644 (file)
@@ -294,7 +294,7 @@ int Font::latexWriteStartChanges(otexstream & os, BufferParams const & bparams,
                        os << "\\textLR{";
                        count += 8;
                // currently the remaining RTL languages are arabic_arabtex and hebrew
-               } else if (isRightToLeft() != prev.isRightToLeft()) {
+               } else if (isRightToLeft() != prev.isRightToLeft() && !runparams.isFullUnicode()) {
                        if (needs_cprotection) {
                                os << "\\cprotect";
                                count += 9;
@@ -336,7 +336,7 @@ int Font::latexWriteStartChanges(otexstream & os, BufferParams const & bparams,
        p.reduce(prev.bits_);
 
        if (f.size() != INHERIT_SIZE) {
-               if (runparams.for_search == OutputParams::NoSearch) {
+               if (!runparams.find_effective()) {
                        os << '{';
                        ++count;
                        os << '\\'