h_use_minted is a bool, not a string

We have a mix in this file of boolean stored as such or as strings.
This translates to values written as true/false or 1/0 in .lyx files.

In this case, the value of use_minted could only be true, since the
char * pointer is non null.

Also add some else clauses.

Spotted by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2017-07-06 14:09:18 +02:00
parent 29378af4cd
commit 64667735f4

View File

@ -992,9 +992,9 @@ void Preamble::handle_package(Parser &p, string const & name,
else if (is_known(name, known_lyx_packages) && options.empty()) {
if (name == "splitidx")
h_use_indices = "true";
if (name == "minted")
h_use_minted = "true";
if (name == "refstyle")
else if (name == "minted")
h_use_minted = true;
else if (name == "refstyle")
h_use_refstyle = true;
else if (name == "prettyref")
h_use_refstyle = false;