[LyX/master] Fix unnecessary cprotect
Juergen Spitzmueller
spitz at lyx.org
Sun Sep 20 06:19:18 UTC 2020
commit b814c4fda732c8b5ee019692eb881c35b9335da6
Author: Juergen Spitzmueller <spitz at 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())
More information about the lyx-cvs
mailing list