From b264ae0dc09e2617d8a6e0b6a8c6fe8f2fc31a82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 14 Jul 2008 12:49:39 +0000 Subject: [PATCH] * 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 --- src/insets/InsetBibitem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.2