Embed: fix a bug in initialize embedded file in InsetInclude

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23668 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-03-11 19:21:34 +00:00
parent 48f9225e27
commit d3f33c2106

View File

@ -145,6 +145,7 @@ EmbeddedFile const includedFilename(Buffer const & buffer,
EmbeddedFile file(to_utf8(params["filename"]), EmbeddedFile file(to_utf8(params["filename"]),
onlyPath(parentFilename(buffer))); onlyPath(parentFilename(buffer)));
file.setEmbed(!params["embed"].empty()); file.setEmbed(!params["embed"].empty());
file.setInzipName(toutf8(params["embed"]));
file.enable(buffer.embedded(), &buffer, false); file.enable(buffer.embedded(), &buffer, false);
return file; return file;
} }