Use real command in runparams.bibtex_command

This commit is contained in:
Juergen Spitzmueller 2017-01-01 12:43:23 +01:00
parent 8add88ee49
commit 63be00c8bc
2 changed files with 2 additions and 7 deletions

View File

@ -398,8 +398,7 @@ bool Converters::convert(Buffer const * buffer,
buffer->params().bufferFormat() == "latex"
&& buffer->params().encoding().package() == Encoding::japanese;
runparams.use_indices = buffer->params().use_indices;
runparams.bibtex_command = (buffer->params().bibtex_command == "default") ?
string() : buffer->params().bibtex_command;
runparams.bibtex_command = buffer->params().bibtexCommand();
runparams.index_command = (buffer->params().index_command == "default") ?
string() : buffer->params().index_command;
runparams.document_language = buffer->params().language->babel();

View File

@ -614,11 +614,7 @@ bool LaTeX::runBibTeX(vector<AuxInfo> const & bibtex_info,
continue;
result = true;
string tmp = runparams.use_japanese ?
lyxrc.jbibtex_command : lyxrc.bibtex_command;
if (!runparams.bibtex_command.empty())
tmp = runparams.bibtex_command;
string tmp = runparams.bibtex_command;
tmp += " ";
// onlyFileName() is needed for cygwin
tmp += quoteName(onlyFileName(removeExtension(