]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
Move isMultiCell() to Cursor, and use it.
[lyx.git] / src / insets / InsetBibitem.cpp
index f796e3c6c14284f69ef6b3a69385bc7f9440d640..137d041c1b8e915679f8ea16360d4dca98f5e02e 100644 (file)
 
 #include "frontends/alert.h"
 
-#include "support/lstrings.h"
+#include "support/convert.h"
 #include "support/docstream.h"
 #include "support/gettext.h"
-#include "support/convert.h"
+#include "support/lstrings.h"
 
 using namespace std;
 using namespace lyx::support;
@@ -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;
        }