From 43893c16ca30163648869ed23150d12cade96e83 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. --- src/insets/InsetBibitem.cpp | 10 +++++----- status.20x | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp index 5fe5e10528..9443b0c2a8 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"]); diff --git a/status.20x b/status.20x index 587a56a572..2459609b36 100644 --- a/status.20x +++ b/status.20x @@ -67,6 +67,8 @@ What's new - Handle correctly undo when a branch is (de)activated. +- Update a bibliography entry's label also when it is emptied. + * DOCUMENTATION AND LOCALIZATION -- 2.39.5