mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Avoid unnecessary cprotect loading (#12826)
This commit is contained in:
parent
551ede855a
commit
94dd5ed6eb
@ -1435,7 +1435,7 @@ bool InsetText::needsCProtection(bool const maintext, bool const fragile) const
|
||||
return true;
|
||||
docstring const par_str = par.asString();
|
||||
for (int k = 0; k < nchars_escape; k++) {
|
||||
if (contains(par_str, chars_escape[k]))
|
||||
if (!maintext && contains(par_str, chars_escape[k]))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user