mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-01 13:40:39 +00:00
Fix tautology spotted by coverity
The if and else paths have been identical since the removal of dvipost
(a450797b2a
)
This commit is contained in:
parent
33da28e5a5
commit
906f2b8507
@ -4343,22 +4343,11 @@ 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
|
|
||||||
// two flavours (dvi and pdf), like latex, and those
|
|
||||||
// are detected by pdflatex.
|
|
||||||
if (pdflatex || xetex) {
|
|
||||||
if (xcolorulem) {
|
|
||||||
preamble.registerAutomaticallyLoadedPackage("ulem");
|
preamble.registerAutomaticallyLoadedPackage("ulem");
|
||||||
preamble.registerAutomaticallyLoadedPackage("xcolor");
|
preamble.registerAutomaticallyLoadedPackage("xcolor");
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
if (xcolorulem) {
|
|
||||||
preamble.registerAutomaticallyLoadedPackage("ulem");
|
|
||||||
preamble.registerAutomaticallyLoadedPackage("xcolor");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user