* src/insets/InsetBibItem.cpp:

- fix duplicate vheck (bug 5035).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25614 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-07-14 12:49:39 +00:00
parent 281035e99a
commit b264ae0dc0

View File

@ -118,10 +118,11 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
}
docstring old_key = params()["key"];
setParam("label", p["label"]);
updateCommand(p["key"]);
if (params()["key"] != old_key)
if (params()["key"] != old_key) {
updateCommand(p["key"]);
cur.bv().buffer().changeRefsIfUnique(old_key,
params()["key"], CITE_CODE);
}
buffer_->invalidateBibinfoCache();
break;
}