* src/insets/InsetLabel.cpp (doDispatch):

- restore call to changeRefsIfUnique.

The references were not updated if the label name was changed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23410 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-03-03 12:22:17 +00:00
parent f5c54d8b69
commit 6f455a916b

View File

@ -104,7 +104,7 @@ docstring InsetLabel::screenLabel() const
}
void InsetLabel::updateLabels(ParIterator const & it)
void InsetLabel::updateLabels(ParIterator const &)
{
docstring const & label = getParam("name");
if (buffer().insetLabel(label))
@ -145,7 +145,11 @@ void InsetLabel::doDispatch(Cursor & cur, FuncRequest & cmd)
cur.noUpdate();
break;
}
docstring old_name = params()["name"];
update(p["name"]);
if (params()["name"] != old_name)
cur.bv().buffer().changeRefsIfUnique(old_name,
params()["name"], REF_CODE);
break;
}