mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
Handle nested \cprotect
This commit is contained in:
parent
6d5e179985
commit
51466fe649
@ -1088,6 +1088,11 @@ InsetText::XHTMLOptions operator|(InsetText::XHTMLOptions a1, InsetText::XHTMLOp
|
|||||||
|
|
||||||
bool InsetText::needsCProtection() const
|
bool InsetText::needsCProtection() const
|
||||||
{
|
{
|
||||||
|
// Nested cprotect content needs \cprotect
|
||||||
|
// on each level
|
||||||
|
if (hasCProtectContent())
|
||||||
|
return true;
|
||||||
|
|
||||||
if (!getLayout().needsCProtect())
|
if (!getLayout().needsCProtect())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user