Fix silly bug that makes it impossible to change bibitem keys.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26114 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-08-10 20:32:51 +00:00
parent 7bff1e62b5
commit 4af444926a

View File

@ -116,9 +116,9 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.noUpdate();
break;
}
docstring old_key = params()["key"];
docstring const & old_key = params()["key"];
setParam("label", p["label"]);
if (params()["key"] != old_key) {
if (p["key"] != old_key) {
updateCommand(p["key"]);
cur.bv().buffer().changeRefsIfUnique(old_key,
params()["key"], CITE_CODE);