]> git.lyx.org Git - lyx.git/blobdiff - src/Font.cpp
Fix pasting as LaTeX in documents with no modules
[lyx.git] / src / Font.cpp
index 7b7585df20fa15496653a393ad8e98e5cbf24c11..cd741d1239df86ba143c092427021f44be54e61b 100644 (file)
@@ -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 << '\\'