mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +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,21 +4343,10 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
os << "\n\\change_deleted ";
|
||||
os << author.bufferId() << ' ' << ptime << '\n';
|
||||
parse_text_snippet(p, os, FLAG_ITEM, outer, context);
|
||||
bool xcolorulem = LaTeXPackages::isAvailable("ulem") &&
|
||||
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("xcolor");
|
||||
}
|
||||
} else {
|
||||
if (xcolorulem) {
|
||||
preamble.registerAutomaticallyLoadedPackage("ulem");
|
||||
preamble.registerAutomaticallyLoadedPackage("xcolor");
|
||||
}
|
||||
if (LaTeXPackages::isAvailable("ulem")
|
||||
&& LaTeXPackages::isAvailable("xcolor")) {
|
||||
preamble.registerAutomaticallyLoadedPackage("ulem");
|
||||
preamble.registerAutomaticallyLoadedPackage("xcolor");
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user