+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):
// "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