From a0f6d3db9e417c8dd3345cb8aecd25a2674aa8f6 Mon Sep 17 00:00:00 2001 From: Julien Rioux Date: Sat, 3 Dec 2011 22:24:30 +0000 Subject: [PATCH] Update a bibitem label also when it is emptied. It is valid for a label to be empty, but up to now the bibliography information was not updated when a label was emptied. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40347 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetBibitem.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index 1dedfafe85..39076b9d99 100644 --- a/src/insets/InsetBibitem.cpp +++ b/src/insets/InsetBibitem.cpp @@ -166,12 +166,12 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd) if (label[previous] != '{') label.replace(pos, 1, lbrace + brackets_escape[k] + rbrace); } + } - if (old_label != label) { - p["label"] = label; - cur.forceBufferUpdate(); - buffer().invalidateBibinfoCache(); - } + if (old_label != label) { + p["label"] = label; + cur.forceBufferUpdate(); + buffer().invalidateBibinfoCache(); } setParam("label", p["label"]); -- 2.39.2