]> git.lyx.org Git - lyx.git/commitdiff
* src/insets/InsetBibItem.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 14 Jul 2008 12:49:39 +0000 (12:49 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 14 Jul 2008 12:49:39 +0000 (12:49 +0000)
- 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

index 69d213822ba2622003b4ce2026db611ad4648324..137d041c1b8e915679f8ea16360d4dca98f5e02e 100644 (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;
        }