]> git.lyx.org Git - features.git/commitdiff
When converting, indicate clearly when buffer should exist
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Apr 2017 10:25:17 +0000 (12:25 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Apr 2017 10:25:17 +0000 (12:25 +0200)
This makes coverity happy, and makes out code a tiny tiny bit better
commented.

src/Converter.cpp

index f58a188a606a1833db2d09debb6b1f34c53d0d86..104ad0a42c49eea8281ea69da72c5c80ae7d5b33 100644 (file)
@@ -463,6 +463,7 @@ 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();
@@ -474,6 +475,8 @@ bool Converters::convert(Buffer const * buffer,
                                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: