commit 2333af615d42d2fe00d12d10f15198ae7199b191
Author: Kornel Benko <[email protected]>
Date: Fri Nov 4 15:34:49 2022 +0100
Amend 9be6a425, Workaround for advanced search in 'uncover'-inset.
Use getInset(i)->toString() instead of getInset(i)->plaintext()
if searching, so that we get the option of 'uncover' visible to the search
engine.
---
src/Paragraph.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index 4ce9441..3b3bc39 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4256,7 +4256,10 @@ docstring Paragraph::asString(pos_type beg, pos_type
end, int options, const Out
else if (c == META_INSET && (options & AS_STR_INSETS)) {
if (c == META_INSET && (options & AS_STR_PLAINTEXT)) {
LASSERT(runparams != nullptr, return
docstring());
- getInset(i)->plaintext(os, *runparams);
+ if (runparams->find_effective())
+ getInset(i)->toString(os);
+ else
+ getInset(i)->plaintext(os, *runparams);
} else if (c == META_INSET && (options & AS_STR_MATHED)
&& getInset(i)->lyxCode() == REF_CODE) {
Buffer const & buf = getInset(i)->buffer();
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs