mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Consider inset strings in simple find/replaceAll (#12049)
This commit is contained in:
parent
1b2a56e2d2
commit
c049527941
@ -4403,8 +4403,13 @@ int Paragraph::find(docstring const & str, bool cs, bool mw,
|
||||
break;
|
||||
odocstringstream os;
|
||||
inset->toString(os);
|
||||
if (!os.str().empty())
|
||||
break;
|
||||
if (!os.str().empty()) {
|
||||
int const insetstringsize = os.str().length();
|
||||
for (int j = 0; j < insetstringsize && pos < parsize; ++i, ++j) {
|
||||
if (str[i] != os.str()[j])
|
||||
break;
|
||||
}
|
||||
}
|
||||
pos++;
|
||||
}
|
||||
if (cs && str[i] != d->text_[pos])
|
||||
|
Loading…
Reference in New Issue
Block a user