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;