Fix renaming of citation refs after changing bibitem key

Fixes: #6494
(cherry picked from commit faefee3dc6)
This commit is contained in:
Juergen Spitzmueller 2019-04-21 09:55:17 +02:00
parent c041412f08
commit 4104cd13a5
2 changed files with 6 additions and 2 deletions

View File

@ -155,8 +155,9 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
setParam("literal", p["literal"]);
if (p["key"] != old_key) {
cur.recordUndoFullBuffer();
cur.bv().buffer().changeRefsIfUnique(old_key, p["key"]);
updateCommand(p["key"]);
cur.bv().buffer().changeRefsIfUnique(old_key, params()["key"]);
cur.forceBufferUpdate();
buffer().invalidateBibinfoCache();
}

View File

@ -34,6 +34,9 @@ What's new
- Allow nameref in math references (bug 9798).
- Fix renaming of citation references after changing bibliography key
(bug 6494).
- Make tab movement visible (bug 10733).
- Add "Reset" and "Reset All Fields" buttons to Text Properties
@ -54,7 +57,7 @@ What's new
- Improve performance on Windows with lots of math insets or very long
math formulas (bug 11546).
- Add Shortcut (Comand-0) for workaera zoom reset to mac.bind.
- Add Shortcut (Command-0) for workarwa zoom reset to mac.bind.
- Improve some icons (bug 11476).