]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.C
forgot this in the last patch
[lyx.git] / src / insets / insetgraphics.C
index 9a55b8e38beeef139ae716db999efe1d9996b473..c7e011d8b6ab84a42dc772e419555cd7bc7afca7 100644 (file)
@@ -685,6 +685,7 @@ string const InsetGraphics::prepareFile(Buffer const & buf,
                        if (lyx::support::rename(temp_file, new_file)) {
                                temp_file = new_file;
                                output_file = changeExtension(output_file, ext);
+                               source_file = changeExtension(source_file, ext);
                        } else
                                lyxerr[Debug::GRAPHICS]
                                        << "Could not rename file `"