From 51466fe6498150b75168c1d778a68ca0d7fea687 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 21 Apr 2018 09:35:42 +0200 Subject: [PATCH] Handle nested \cprotect --- src/insets/InsetText.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.2