From 4d0a568d4c4a3a5e379849f3ad524ec832889b35 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sat, 8 Apr 2006 09:11:25 +0000 Subject: [PATCH] * src/insets/insetgraphics.C (prepareFile): output correct file name of compressed files (bug 2231) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13596 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insetgraphics.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 9ea6508a33..1450a42b7d 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -595,10 +595,10 @@ string const InsetGraphics::prepareFile(Buffer const & buf, // buffer. // "nice" means that the buffer is exported to LaTeX format but not // run through the LaTeX compiler. - string const output_file = os::external_path(runparams.nice ? + string output_file = os::external_path(runparams.nice ? params().filename.outputFilename(m_buffer->filePath()) : OnlyFilename(temp_file)); - string const source_file = runparams.nice ? orig_file : temp_file; + string source_file = runparams.nice ? orig_file : temp_file; string const tex_format = (runparams.flavor == OutputParams::LATEX) ? "latex" : "pdflatex"; @@ -638,6 +638,8 @@ string const InsetGraphics::prepareFile(Buffer const & buf, } string const unzipped_temp_file = unzippedFileName(temp_file); + output_file = unzippedFileName(output_file); + source_file = unzippedFileName(source_file); if (compare_timestamps(unzipped_temp_file, temp_file) > 0) { // temp_file has been unzipped already and // orig_file has not changed in the meantime.