]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.cpp
Strip et al. for citation search
[lyx.git] / src / insets / InsetInclude.cpp
index 30eacd70289ef414218fa785124194224db0b468..870310ef2ddaa9c03f3186ee18d4fc39f29f3939 100644 (file)
@@ -1006,14 +1006,14 @@ int InsetInclude::plaintext(odocstringstream & os,
 {
        // just write the filename if we're making a tooltip or toc entry,
        // or are generating this for advanced search
-       if (op.for_tooltip || op.for_toc || op.for_searchAdv != OutputParams::NoSearch) {
+       if (op.for_tooltip || op.for_toc || op.find_effective()) {
                os << '[' << screenLabel() << '\n'
                   << ltrim(getParam("filename")) << "\n]";
                return PLAINTEXT_NEWLINE + 1; // one char on a separate line
        }
 
        if (isVerbatim(params()) || isListings(params())) {
-               if (op.for_searchAdv != OutputParams::NoSearch) {
+               if (op.find_effective()) {
                        os << '[' << screenLabel() << ']';
                }
                else {