From: Juergen Spitzmueller Date: Sat, 21 Apr 2018 07:35:42 +0000 (+0200) Subject: Handle nested \cprotect X-Git-Tag: lyx-2.4.0dev-acb2ca7b~3593 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=51466fe6498150b75168c1d778a68ca0d7fea687;p=features.git Handle nested \cprotect --- diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index e65f7e9d03..b38a1dc356 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -1088,6 +1088,11 @@ InsetText::XHTMLOptions operator|(InsetText::XHTMLOptions a1, InsetText::XHTMLOp bool InsetText::needsCProtection() const { + // Nested cprotect content needs \cprotect + // on each level + if (hasCProtectContent()) + return true; + if (!getLayout().needsCProtect()) return false;