This assures that refs to existing labels are not being touched if a new label with a duplicate name is created, and the name then changed by the duplicate checker.
Branch candidate.
(cherry picked from commit
86cccf10771cb00c71fac2becf39dd7e9a301d45)
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"));
}
- 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