X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetBibitem.cpp;h=39076b9d997fdc8b0c8bba7043508894043a9f82;hb=a0f6d3db9e417c8dd3345cb8aecd25a2674aa8f6;hp=1dedfafe8598bd549534830e9a2f564d98352ab6;hpb=dfdcc56cbaf77b67048cfd7e2ad877b7687f4888;p=lyx.git 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"]);