mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Fix bug #6563: Change tracking and moving labels
Do not warn that a label already exists if it is in a deleted part of the document. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33714 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d8bb69e74e
commit
7c8510f02e
@ -3854,6 +3854,7 @@ void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const
|
||||
InsetList::const_iterator end = parit->insetList().end();
|
||||
for (; iit != end; ++iit) {
|
||||
parit.pos() = iit->pos;
|
||||
if (!parit->isDeleted(iit->pos))
|
||||
iit->inset->updateBuffer(parit, utype);
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,9 @@ namespace lyx {
|
||||
|
||||
InsetLabel::InsetLabel(Buffer * buf, InsetCommandParams const & p)
|
||||
: InsetCommand(buf, p, "label")
|
||||
{}
|
||||
{
|
||||
screen_label_ = p["name"];
|
||||
}
|
||||
|
||||
|
||||
void InsetLabel::initView()
|
||||
@ -101,6 +103,7 @@ void InsetLabel::updateCommand(docstring const & new_label, bool updaterefs)
|
||||
// We need an update of the Buffer reference cache. This is achieved by
|
||||
// updateBuffer().
|
||||
buffer().updateBuffer();
|
||||
screen_label_ = label;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user