mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
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:
parent
b82a6bd2ad
commit
88821570ee
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user