From: Juergen Spitzmueller Date: Tue, 24 Nov 2020 14:19:56 +0000 (+0100) Subject: Do not \cprotect \textcolor X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4487af367ce3ccaa64a1192fac34150830fd246a;p=features.git Do not \cprotect \textcolor Fixes #12034 --- diff --git a/src/Font.cpp b/src/Font.cpp index b70c237db4..26218eeeac 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())) << "}{";