mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
parent
2fc0fdb3e4
commit
e65fdc6a51
@ -105,6 +105,15 @@ void InsetLabel::updateLabelAndRefs(docstring const & new_label,
|
|||||||
UndoGroupHelper ugh(&buffer());
|
UndoGroupHelper ugh(&buffer());
|
||||||
if (cursor)
|
if (cursor)
|
||||||
cursor->recordUndo();
|
cursor->recordUndo();
|
||||||
|
if (buffer().params().track_changes) {
|
||||||
|
// With change tracking, we insert a new label and
|
||||||
|
// delete the old one
|
||||||
|
InsetCommandParams p(LABEL_CODE, "label");
|
||||||
|
p["name"] = label;
|
||||||
|
string const data = InsetCommand::params2string(p);
|
||||||
|
lyx::dispatch(FuncRequest(LFUN_INSET_INSERT, data));
|
||||||
|
lyx::dispatch(FuncRequest(LFUN_CHAR_DELETE_FORWARD));
|
||||||
|
} else
|
||||||
setParam("name", label);
|
setParam("name", label);
|
||||||
updateReferences(old_label, label);
|
updateReferences(old_label, label);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user