]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetGraphics.cpp
index 4f58f76ac3ce8d99f7d197c3809b22ca558e52da..cff5a843ea8d01f74c538c81db49a62397b06286 100644 (file)
@@ -627,13 +627,12 @@ string const InsetGraphics::prepareFile(Buffer const & buf,
        if (status == FAILURE)
                return orig_file;
 
-       // a relative filename should be relative to the master
-       // buffer.
+       // a relative filename should be relative to the master buffer.
        // "nice" means that the buffer is exported to LaTeX format but not
-       //        run through the LaTeX compiler.
-       string output_file = support::os::external_path(runparams.nice ?
+       // run through the LaTeX compiler.
+       string output_file = runparams.nice ?
                params().filename.outputFilename(m_buffer->filePath()) :
-               onlyFilename(temp_file.absFilename()));
+               onlyFilename(temp_file.absFilename());
 
        if (runparams.nice && !isValidLaTeXFilename(output_file)) {
                frontend::Alert::warning(_("Invalid filename"),