mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
* 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:
parent
f5c54d8b69
commit
6f455a916b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user