fix 514 (from herbert)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4668 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-07-16 22:12:25 +00:00
parent 7de2b3523e
commit 1dbfc15548
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-07-17 Herbert Voss <voss@perce.de>
* insetgraphics.C (prepareFile): keep the extension when
exporting to nice file
2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* insetcite.C (getNatbibLabel):

View File

@ -679,10 +679,11 @@ string const InsetGraphics::prepareFile(Buffer const *buf) const
// "nice" means that the buffer is exported to LaTeX format but not
// run through the LaTeX compiler.
// if (nice)
// No conversion of the graphics file is needed.
// Return the original filename without any extension.
// no conversion needed!
// Return the original filename as is, because we do not know
// what the user decide.
if (buf->niceFile)
return RemoveExtension(orig_file);
return orig_file;
// We're going to be running the exported buffer through the LaTeX
// compiler, so must ensure that LaTeX can cope with the graphics