]> git.lyx.org Git - features.git/commitdiff
* use the buffer's path as the base path when computing the filename of an
authorStefan Schimanski <sts@lyx.org>
Wed, 26 Mar 2008 16:02:32 +0000 (16:02 +0000)
committerStefan Schimanski <sts@lyx.org>
Wed, 26 Mar 2008 16:02:32 +0000 (16:02 +0000)
  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

index 37ffc6fe9a097b29b03a0f376be8c38ebf38a3b8..f59bd352edeccdcb694c90d87be2355cbc67914e 100644 (file)
@@ -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);
 }