Do not overwrite the parameters, just set the ones we need to set.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23996 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-03-27 04:06:38 +00:00
parent 90efac9d6b
commit c769ac08f2

View File

@ -232,7 +232,6 @@ void InsetInclude::setBuffer(Buffer & buffer)
buffer_ = &buffer;
if (label_)
label_->setBuffer(buffer);
}
@ -947,10 +946,8 @@ void InsetInclude::registerEmbeddedFiles(EmbeddedFileList & files) const
void InsetInclude::updateEmbeddedFile(EmbeddedFile const & file)
{
InsetCommandParams p = params();
p["filename"] = from_utf8(file.outputFilename(buffer().filePath()));
p["embed"] = file.embedded() ? from_utf8(file.inzipName()) : docstring();
setParams(p);
setParam("filename", from_utf8(file.outputFilename(buffer().filePath())));
setParam("embed", file.embedded() ? from_utf8(file.inzipName()) : docstring());
}