Assume unknown formats are EPS, hacky solution before implementing a real one.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2379 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Baruch Even 2001-07-29 06:50:27 +00:00
parent b82a6bd2ad
commit 88821570ee
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2001-07-30 Baruch Even <baruch@lyx.org>
* insetgraphics.C (decideOutputImageFormat): when doing postscript output
convert PNG/GIF/JPG to EPS, assume the rest are EPS already.
HACKY! Will need to add an EPS detection routine like old InsetFig does!
2001-07-30 Baruch Even <baruch@lyx.org>
* insetgraphics.C: Added EPSI to be an alias of EPS.

View File

@ -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