From ffaab7d15074404c6398ca08afd938eccc89949c Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Wed, 26 Mar 2008 16:02:32 +0000 Subject: [PATCH] * 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 --- src/insets/InsetInclude.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }