commit 4487af367ce3ccaa64a1192fac34150830fd246a
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Nov 24 15:19:56 2020 +0100

    Do not \cprotect \textcolor
    
    Fixes #12034
---
 src/Font.cpp |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/Font.cpp b/src/Font.cpp
index b70c237..26218ee 100644
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -399,10 +399,6 @@ int Font::latexWriteStartChanges(otexstream & os, 
BufferParams const & bparams,
                        os << '}';
                        ++count;
                } else if (f.color() != Color_none) {
-                       if (needs_cprotection) {
-                               os << "\\cprotect";
-                               count += 9;
-                       }
                        os << "\\textcolor{"
                           << from_ascii(lcolor.getLaTeXName(f.color()))
                           << "}{";
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to