commit 51466fe6498150b75168c1d778a68ca0d7fea687
Author: Juergen Spitzmueller <[email protected]>
Date: Sat Apr 21 09:35:42 2018 +0200
Handle nested \cprotect
---
src/insets/InsetText.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index e65f7e9..b38a1dc 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;