X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetgraphics.C;h=6333d45e8336e0fb7a8a68d1c04958463f3c024c;hb=88821570eedd2099e71089be79e2140f7808caea;hp=73644321168fdc19a44fb75e2a7b74eb4201d776;hpb=b82a6bd2ade43d2e9d8f9686f889757bbd4ab4f0;p=lyx.git diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 7364432116..6333d45e83 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -528,9 +528,11 @@ string decideOutputImageFormat(string const & in_fmt) } // If it's postscript, we always do eps. - if (in_fmt == "eps" || in_fmt == "epsi") - return in_fmt; // eps & epsi are both eps, but different extension. - return "eps"; + // Garst has many eps files with various extensions, we just assume + // whatever goes in (except those we know to be otherwise) is eps + if (in_fmt == "gif" || in_fmt == "png" || in_fmt == "jpg") + return "eps"; + return in_fmt; } } // Anon. namespace