]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
Fix fa0f142e (plain quotes fix).
[lyx.git] / src / Converter.cpp
index 2f22030495139195f2d1c20fb05755cf6663cc33..104ad0a42c49eea8281ea69da72c5c80ae7d5b33 100644 (file)
@@ -463,16 +463,20 @@ bool Converters::convert(Buffer const * buffer,
                        return false;
 
                if (conv.latex()) {
+                       // We are not importing, we have a buffer
+                       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;
                } else {
                        if (conv.need_aux() && !run_latex) {
+                               // We are not importing, we have a buffer
+                               LATTEST(buffer);
                                string command;
                                switch (runparams.flavor) {
                                case OutputParams::DVILUATEX: