Do not \cprotect \textcolor

Fixes #12034
This commit is contained in:
Juergen Spitzmueller 2020-11-24 15:19:56 +01:00
parent be50eb507f
commit 4487af367c

View 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()))
<< "}{";