]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetIndex.cpp
Fixup 572b06d6: reduce cache size for breakString
[lyx.git] / src / insets / InsetIndex.cpp
index 2e1e19c0f46eaef7a328a9116aeac261c6dd85e4..7ffff6081d8278ee85bf63111cf7083f97ebcbd9 100644 (file)
@@ -85,7 +85,7 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
        odocstringstream ourlatex;
        otexstream ots(ourlatex);
        InsetText::latex(ots, runparams);
-       if (runparams.for_searchAdv != OutputParams::NoSearch) {
+       if (runparams.find_effective()) {
                // No need for special handling, if we are only searching for some patterns
                os << ourlatex.str() << "}";
                return;
@@ -149,7 +149,7 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
                // version of the content to get sorting right,
                // e.g. \index{LyX@\LyX}, \index{text@\textbf{text}}.
                // We do this on all levels.
-               // We don't do it if the level already contains a '@', thouugh.
+               // We don't do it if the level already contains a '@', though.
                if (contains(*it, '\\') && !contains(*it, '@')) {
                        // Plaintext might return nothing (e.g. for ERTs).
                        // In that case, we use LaTeX.