mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix function disabling
This commit is contained in:
parent
6e54388f3b
commit
0f866762b2
@ -2527,6 +2527,7 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
Layout::LaTeXArgMap::const_iterator const lait =
|
||||
args.find(convert<unsigned int>(arg));
|
||||
if (lait != args.end()) {
|
||||
enable = true;
|
||||
InsetList::const_iterator it = cur.paragraph().insetList().begin();
|
||||
InsetList::const_iterator end = cur.paragraph().insetList().end();
|
||||
for (; it != end; ++it) {
|
||||
@ -2540,7 +2541,6 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
}
|
||||
}
|
||||
}
|
||||
enable = true;
|
||||
} else
|
||||
enable = false;
|
||||
break;
|
||||
|
@ -344,6 +344,7 @@ bool InsetText::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
Layout::LaTeXArgMap::const_iterator const lait =
|
||||
args.find(convert<unsigned int>(arg));
|
||||
if (lait != args.end()) {
|
||||
status.setEnabled(true);
|
||||
InsetList::const_iterator it = cur.paragraph().insetList().begin();
|
||||
InsetList::const_iterator end = cur.paragraph().insetList().end();
|
||||
for (; it != end; ++it) {
|
||||
@ -357,7 +358,6 @@ bool InsetText::getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||
}
|
||||
}
|
||||
}
|
||||
status.setEnabled(true);
|
||||
} else
|
||||
status.setEnabled(false);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user