]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Fix make check.
[lyx.git] / src / Converter.cpp
index e596b3d3c6aee2036495e526f66b99aeb9983e22..ead36182cbd820e54ecb37bfcb7a3e772330a173 100644 (file)
@@ -285,8 +285,8 @@ bool Converters::checkAuth(Converter const & conv, string const & doc_fname)
                return true;
        const docstring security_warning = bformat(
              _("<p>The requested operation requires the use of a converter from "
-               "%2$s to %3$s:"
-               "<blockquote><tt>%1$s</tt></blockquote>"
+               "%2$s to %3$s:</p>"
+               "<blockquote><p><tt>%1$s</tt></p></blockquote>"
                "<p>This external program can execute arbitrary commands on your "
                "system, including dangerous ones, if instructed to do so by a "
                "maliciously crafted .lyx document.</p>"),
@@ -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();
@@ -457,7 +456,7 @@ bool Converters::convert(Buffer const * buffer,
                                                   "tmpfile.out"));
                }
 
-               if (!checkAuth(conv, buffer->absFileName()))
+               if (!checkAuth(conv, buffer ? buffer->absFileName() : string()))
                        return false;
 
                if (conv.latex()) {