mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
29378af4cd
commit
64667735f4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user