* 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
This commit is contained in:
Stefan Schimanski 2008-03-26 16:02:32 +00:00
parent 1c115ba7cb
commit ffaab7d150

View 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);
}