mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
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.
This commit is contained in:
parent
a98a49bd94
commit
43893c16ca
@ -166,12 +166,12 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
if (label[previous] != '{')
|
if (label[previous] != '{')
|
||||||
label.replace(pos, 1, lbrace + brackets_escape[k] + rbrace);
|
label.replace(pos, 1, lbrace + brackets_escape[k] + rbrace);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (old_label != label) {
|
if (old_label != label) {
|
||||||
p["label"] = label;
|
p["label"] = label;
|
||||||
cur.forceBufferUpdate();
|
cur.forceBufferUpdate();
|
||||||
buffer().invalidateBibinfoCache();
|
buffer().invalidateBibinfoCache();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setParam("label", p["label"]);
|
setParam("label", p["label"]);
|
||||||
|
@ -67,6 +67,8 @@ What's new
|
|||||||
|
|
||||||
- Handle correctly undo when a branch is (de)activated.
|
- Handle correctly undo when a branch is (de)activated.
|
||||||
|
|
||||||
|
- Update a bibliography entry's label also when it is emptied.
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user