From c769ac08f24505f367640fe01297aac74494db58 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 27 Mar 2008 04:06:38 +0000 Subject: [PATCH] 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 --- src/insets/InsetInclude.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index f59bd352ed..67b1c65909 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -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()); }