mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +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. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40347 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
dfdcc56cba
commit
a0f6d3db9e
@ -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"]);
|
||||
|
Loading…
Reference in New Issue
Block a user