]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Fix problem with static error list.
[lyx.git] / src / insets / InsetGraphics.cpp
index ac76d4e251d1afa5aa4de3d57452cec3fd597c13..dc79a017e0c763e279c9c0ebff1b72857e9c9d30 100644 (file)
@@ -611,8 +611,7 @@ string InsetGraphics::prepareFile(OutputParams const & runparams) const
 
        FileName source_file = runparams.nice ? FileName(params().filename) : temp_file;
        // determine the export format
-       string const tex_format = (runparams.flavor == OutputParams::LATEX) ?
-                       "latex" : "pdflatex";
+       string const tex_format = flavor2format(runparams.flavor);
 
        // If the file is compressed and we have specified that it
        // should not be uncompressed, then just return its name and