commit faefee3dc633e90d770f417c344c8047993ca360
Author: Juergen Spitzmueller <[email protected]>
Date: Sun Apr 21 09:55:17 2019 +0200
Fix renaming of citation refs after changing bibitem key
Fixes: #6494
---
src/insets/InsetBibitem.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/insets/InsetBibitem.cpp b/src/insets/InsetBibitem.cpp
index 221e629..424755b 100644
--- a/src/insets/InsetBibitem.cpp
+++ b/src/insets/InsetBibitem.cpp
@@ -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();
}