]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Introduce NeedCProtect -1 layout option
[lyx.git] / src / insets / InsetText.cpp
index 084e41802707ce2e779ed9272235c435eb8d6948..3e80312928d1890ce7bf85be3e2e796b724f604c 100644 (file)
@@ -500,7 +500,7 @@ void InsetText::latex(otexstream & os, OutputParams const & runparams) const
                        // FIXME UNICODE
                        // FIXME \protect should only be used for fragile
                        //    commands, but we do not provide this information yet.
-                       if (hasCProtectContent(runparams.moving_arg)) {
+                       if (!runparams.no_cprotect && hasCProtectContent(runparams.moving_arg)) {
                                if (contains(runparams.active_chars, '^')) {
                                        // cprotect relies on ^ being on catcode 7
                                        os << "\\begingroup\\catcode`\\^=7";