commit 400ed12ba61e1e210b1cc91b237348272aac8120
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Oct 21 21:27:46 2025 +0200

    amend 88a2414839f
    
    Assure that \cprotect really isn't used in table cells
    
    (cherry picked from commit 57f365bd4fd9cf4d5897b7395af0eb14b9f34c42)
---
 src/insets/InsetText.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp
index b982a8d54d..af3f71e25d 100644
--- a/src/insets/InsetText.cpp
+++ b/src/insets/InsetText.cpp
@@ -568,7 +568,8 @@ void InsetText::latex(otexstream & os, OutputParams const & 
runparams) const
                rp.pass_thru_chars += il.passThruChars();
        if (!il.noPassThruChars().empty())
                rp.no_pass_thru_chars += il.noPassThruChars();
-       if (il.noCProtect())
+       // cprotect generally does not work in tables
+       if (il.noCProtect() || lyxCode() == CELL_CODE)
                rp.no_cprotect = true;
        if (!il.newlineCmd().empty())
                rp.newlinecmd = il.newlineCmd();
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to