From: Jürgen Spitzmüller Date: Mon, 14 Jul 2008 12:49:39 +0000 (+0000) Subject: * src/insets/InsetBibItem.cpp: X-Git-Tag: 1.6.10~4069 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b264ae0dc09e2617d8a6e0b6a8c6fe8f2fc31a82;p=features.git * 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 --- diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index 69d213822b..137d041c1b 100644 --- a/src/insets/InsetBibitem.cpp +++ b/src/insets/InsetBibitem.cpp @@ -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; }