mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
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:
parent
90efac9d6b
commit
c769ac08f2
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user