]> git.lyx.org Git - features.git/commitdiff
Forgot the crucial piece of the last commit!!
authorRichard Heck <rgheck@lyx.org>
Tue, 12 Mar 2013 17:12:45 +0000 (13:12 -0400)
committerRichard Heck <rgheck@lyx.org>
Tue, 12 Mar 2013 17:12:45 +0000 (13:12 -0400)
src/Paragraph.cpp

index ec2ff51cc1da1f02c02192977c04692126018684..8df7ab70262af0a02e9f3d925bd5ef6c6311b3d4 100644 (file)
@@ -3142,13 +3142,16 @@ docstring Paragraph::stringify(pos_type beg, pos_type end, int options,
                && !d->params_.labelString().empty())
                os << d->params_.labelString() << ' ';
 
+       OutputParams op = runparams;
+       op.for_search = true;
+
        for (pos_type i = beg; i < end; ++i) {
                char_type const c = d->text_[i];
                if (isPrintable(c) || c == '\t'
                    || (c == '\n' && (options & AS_STR_NEWLINES)))
                        os.put(c);
                else if (c == META_INSET && (options & AS_STR_INSETS)) {
-                       getInset(i)->plaintext(os, runparams);
+                       getInset(i)->plaintext(os, op);
                }
        }