On 12/03/2011 05:24 PM, [email protected] wrote:
> Author: jrioux
> Date: Sat Dec 3 23:24:30 2011
> New Revision: 40347
> URL: http://www.lyx.org/trac/changeset/40347
>
> Log:
> 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.
>
Needed in branch, too, I'd suppose?
Richard
> Modified:
> lyx-devel/trunk/src/insets/InsetBibitem.cpp
>
> Modified: lyx-devel/trunk/src/insets/InsetBibitem.cpp
> ==============================================================================
> --- lyx-devel/trunk/src/insets/InsetBibitem.cpp Sat Dec 3 23:15:11
> 2011 (r40346)
> +++ lyx-devel/trunk/src/insets/InsetBibitem.cpp Sat Dec 3 23:24:30
> 2011 (r40347)
> @@ -166,12 +166,12 @@
> 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"]);