diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp index c483f94883..34b7e62d42 100644 --- a/src/insets/InsetLabel.cpp +++ b/src/insets/InsetLabel.cpp @@ -55,9 +55,11 @@ InsetLabel::InsetLabel(Buffer * buf, InsetCommandParams const & p) void InsetLabel::initView() { - // FIXME: This seems to be used only for inset creation so - // we probably just need to call updateLabel() here. - updateLabelAndRefs(getParam("name")); + // This seems to be used only for inset creation. + // Therefore we do not update refs here, since this would + // erroneously change refs from existing duplicate labels + // (#8141). + updateLabel(getParam("name")); } diff --git a/status.20x b/status.20x index 2b90afa49a..689a0c9c5f 100644 --- a/status.20x +++ b/status.20x @@ -133,6 +133,9 @@ What's new - Fix crash when using undo in a paragraph with layout Bibliography (bug 7111). +- Fix bug where references were erroneously changed when a duplicate label + name was resolved (bug 8147). + - Make sure that undo restores environment depth correctly (bug 8159). - Make sure that undo restores paragraph longest label width correctly