commit b814c4fda732c8b5ee019692eb881c35b9335da6 Author: Juergen Spitzmueller <sp...@lyx.org> Date: Sun Sep 20 08:45:42 2020 +0200
Fix unnecessary cprotect --- src/Paragraph.cpp | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 7f707bc..93d0c17 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -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()) -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs