Do not update refs on new label creation (#8147)

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.
This commit is contained in:
Juergen Spitzmueller 2012-09-19 10:14:56 +02:00
parent f5b4cd90a3
commit 86cccf1077

View File

@ -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"));
}