Handle nested \cprotect

This commit is contained in:
Juergen Spitzmueller 2018-04-21 09:35:42 +02:00
parent 6d5e179985
commit 51466fe649

View File

@ -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;