From: Stefan Schimanski Date: Wed, 26 Mar 2008 16:02:32 +0000 (+0000) Subject: * use the buffer's path as the base path when computing the filename of an X-Git-Tag: 1.6.10~5417 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ffaab7d15074404c6398ca08afd938eccc89949c;p=lyx.git * use the buffer's path as the base path when computing the filename of an include command (like it is done in InsetBibtex). This fixes master/child latex output. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23973 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index 37ffc6fe9a..f59bd352ed 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -948,7 +948,7 @@ void InsetInclude::registerEmbeddedFiles(EmbeddedFileList & files) const void InsetInclude::updateEmbeddedFile(EmbeddedFile const & file) { InsetCommandParams p = params(); - p["filename"] = from_utf8(file.outputFilename()); + p["filename"] = from_utf8(file.outputFilename(buffer().filePath())); p["embed"] = file.embedded() ? from_utf8(file.inzipName()) : docstring(); setParams(p); }