]> git.lyx.org Git - features.git/commitdiff
fix 514 (from herbert)
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 16 Jul 2002 22:12:25 +0000 (22:12 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 16 Jul 2002 22:12:25 +0000 (22:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4668 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetgraphics.C

index 5f5f03f60dd2841a2cf2aaf3acd40d5895f7e8c4..1daeec89f7118ebd84fc4b4370e725d53e7da71a 100644 (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): 
index 36f80bfa73786bc7e6b7ddae2520e457dd8ad302..4dbdd2524345a675bc61bf2cf7e3f0b67c89b999 100644 (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