]> git.lyx.org Git - features.git/commitdiff
Do not \cprotect \textcolor
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 24 Nov 2020 14:19:56 +0000 (15:19 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 24 Nov 2020 14:19:56 +0000 (15:19 +0100)
Fixes #12034

src/Font.cpp

index b70c237db4d14498f798ea42e60c2a2036b9400d..26218eeeac280dde50a82bba5400b1f2f8cfd30e 100644 (file)
@@ -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()))
                           << "}{";