]> git.lyx.org Git - features.git/commitdiff
Handle nested \cprotect
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 21 Apr 2018 07:35:42 +0000 (09:35 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 21 Apr 2018 07:35:42 +0000 (09:35 +0200)
src/insets/InsetText.cpp

index e65f7e9d03e24bebae9a5983a929d2bbc7ab98d2..b38a1dc3565de8a43df6741b65dac9513523b1c0 100644 (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;