Fix tautology spotted by coverity

The if and else paths have been identical since the removal of dvipost
(a450797b2a)
This commit is contained in:
Juergen Spitzmueller 2023-10-20 09:53:38 +02:00
parent 33da28e5a5
commit 906f2b8507

View File

@ -4343,21 +4343,10 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
os << "\n\\change_deleted "; os << "\n\\change_deleted ";
os << author.bufferId() << ' ' << ptime << '\n'; os << author.bufferId() << ' ' << ptime << '\n';
parse_text_snippet(p, os, FLAG_ITEM, outer, context); parse_text_snippet(p, os, FLAG_ITEM, outer, context);
bool xcolorulem = LaTeXPackages::isAvailable("ulem") && if (LaTeXPackages::isAvailable("ulem")
LaTeXPackages::isAvailable("xcolor"); && LaTeXPackages::isAvailable("xcolor")) {
// No need to test for luatex, since luatex comes in preamble.registerAutomaticallyLoadedPackage("ulem");
// two flavours (dvi and pdf), like latex, and those preamble.registerAutomaticallyLoadedPackage("xcolor");
// are detected by pdflatex.
if (pdflatex || xetex) {
if (xcolorulem) {
preamble.registerAutomaticallyLoadedPackage("ulem");
preamble.registerAutomaticallyLoadedPackage("xcolor");
}
} else {
if (xcolorulem) {
preamble.registerAutomaticallyLoadedPackage("ulem");
preamble.registerAutomaticallyLoadedPackage("xcolor");
}
} }
continue; continue;
} }