]> git.lyx.org Git - features.git/commitdiff
Fix bug #8139 and a thinko in [737e9b2c/lyxgit].
authorEnrico Forestieri <forenr@lyx.org>
Thu, 26 Apr 2012 13:23:42 +0000 (15:23 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 26 Apr 2012 15:20:23 +0000 (17:20 +0200)
No status.20x entry needed, as this should have been part
of [3285ce1d5/lygit].

(cherry picked from commit 66a95b9c1bd26da63459fe430452991b0bc3ec3a)

src/Converter.cpp

index 9a41d75643e0db93b85618b4095bb7d7b280a967..08e8efcd359c630d35db997a337bbc0336b8fba0 100644 (file)
@@ -272,7 +272,9 @@ OutputParams::FLAVOR Converters::getFlavor(Graph::EdgePath const & path,
        for (Graph::EdgePath::const_iterator cit = path.begin();
             cit != path.end(); ++cit) {
                Converter const & conv = converterlist_[*cit];
-               if (conv.latex)
+               if (conv.latex) {
+                       if (conv.latex_flavor == "latex")
+                               return OutputParams::LATEX;
                        if (conv.latex_flavor == "xelatex")
                                return OutputParams::XETEX;
                        if (conv.latex_flavor == "lualatex")
@@ -281,6 +283,7 @@ OutputParams::FLAVOR Converters::getFlavor(Graph::EdgePath const & path,
                                return OutputParams::DVILUATEX;
                        if (conv.latex_flavor == "pdflatex")
                                return OutputParams::PDFLATEX;
+               }
                if (conv.xml)
                        return OutputParams::XML;
        }