mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix unnecessary cprotect
This commit is contained in:
parent
da67bde61a
commit
b814c4fda7
@ -3912,9 +3912,6 @@ bool Paragraph::needsCProtection(bool const fragile) const
|
||||
Inset const * ins = getInset(i);
|
||||
if (ins->needsCProtection(maintext, fragile))
|
||||
return true;
|
||||
if (ins->getLayout().latextype() == InsetLayout::ENVIRONMENT)
|
||||
// Environments need cprotection regardless the content
|
||||
return true;
|
||||
// Now check math environments
|
||||
InsetMath const * im = getInset(i)->asInsetMath();
|
||||
if (!im || im->cell(0).empty())
|
||||
|
Loading…
Reference in New Issue
Block a user