From: Jean-Marc Lasgouttes Date: Tue, 16 Jul 2002 22:12:25 +0000 (+0000) Subject: fix 514 (from herbert) X-Git-Tag: 1.6.10~18851 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1dbfc155481dfc0dd8cbbe0cbaafea91c018a197;p=features.git fix 514 (from herbert) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4668 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 5f5f03f60d..1daeec89f7 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2002-07-17 Herbert Voss + + * insetgraphics.C (prepareFile): keep the extension when + exporting to nice file + 2002-07-15 Jean-Marc Lasgouttes * insetcite.C (getNatbibLabel): diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 36f80bfa73..4dbdd25243 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -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