mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
When checking inset activity status, also check containing insets
which could be deteled
This commit is contained in:
parent
e8c1cb5074
commit
5cfd256974
@ -148,7 +148,17 @@ void InsetLabel::updateBuffer(ParIterator const & par, UpdateType utype)
|
||||
|
||||
// Check if this one is deleted (ct)
|
||||
Paragraph const & para = par.paragraph();
|
||||
bool const active = !para.isDeleted(par.pos());
|
||||
bool active = !para.isDeleted(par.pos());
|
||||
// If not, check whether we are in a deleted inset
|
||||
if (active) {
|
||||
for (size_type sl = 0 ; sl < par.depth() ; ++sl) {
|
||||
Paragraph const & outer_par = par[sl].paragraph();
|
||||
if (outer_par.isDeleted(par[sl].pos())) {
|
||||
active = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (buffer().activeLabel(label) && active) {
|
||||
// Problem: We already have an active InsetLabel with the same name!
|
||||
|
Loading…
Reference in New Issue
Block a user