mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
When running latex one needs to have a proper buffer
Calms down coverity
This commit is contained in:
parent
522f3517e1
commit
f7768c994d
@ -463,11 +463,12 @@ bool Converters::convert(Buffer const * buffer,
|
||||
return false;
|
||||
|
||||
if (conv.latex()) {
|
||||
LATTEST(buffer);
|
||||
run_latex = true;
|
||||
string command = conv.command();
|
||||
command = subst(command, token_from, "");
|
||||
command = subst(command, token_latex_encoding, buffer ?
|
||||
buffer->params().encoding().latexName() : string());
|
||||
command = subst(command, token_latex_encoding,
|
||||
buffer->params().encoding().latexName());
|
||||
LYXERR(Debug::FILES, "Running " << command);
|
||||
if (!runLaTeX(*buffer, command, runparams, errorList))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user