Am 26.03.2008 um 17:02 schrieb [EMAIL PROTECTED]:
Author: sts
Date: Wed Mar 26 17:02:32 2008
New Revision: 23973

URL: http://www.lyx.org/trac/changeset/23973
Log:
* 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.

Modified:
   lyx-devel/trunk/src/insets/InsetInclude.cpp

Modified: lyx-devel/trunk/src/insets/InsetInclude.cpp
URL: 
http://www.lyx.org/trac/file/lyx-devel/trunk/src/insets/InsetInclude.cpp?rev=23973
= = = = = = = = ======================================================================
--- lyx-devel/trunk/src/insets/InsetInclude.cpp (original)
+++ lyx-devel/trunk/src/insets/InsetInclude.cpp Wed Mar 26 17:02:32 2008
@@ -948,7 +948,7 @@
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);
}

Maybe something like buffer().masterBuffer()->temppath() would make more sense here?

Stefan

Reply via email to