From 7460abc6275d12995a7841928ad2cbbe6db1a5ad Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 25 Mar 2008 05:13:38 +0000 Subject: [PATCH] Fix bug 4651. Bo, if you read this: Is there a cleaner way to do this, so that we can set parameters the way we used to? i.e., via setParam(p) here? rather than having to go through these hoops in updateParam()? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23938 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetBibtex.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index a74be8e1f0..c46176eb8d 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -107,6 +107,7 @@ void InsetBibtex::doDispatch(Cursor & cur, FuncRequest & cmd) // createBibFiles(p["bibfiles"], p["embed"]); updateParam(); + setParam("options", p["options"]); buffer().updateBibfilesCache(); break; } @@ -782,8 +783,10 @@ void InsetBibtex::updateParam() docstring embed; bool first = true; - for (EmbeddedFileList::iterator it = bibfiles_.begin(); - it != bibfiles_.end(); ++it) { + + EmbeddedFileList::iterator it = bibfiles_.begin(); + EmbeddedFileList::iterator en = bibfiles_.end(); + for (; it != en; ++it) { if (!first) { bibfiles += ','; embed += ',';