mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-14 12:25:11 +00:00
Do not show obsoleted flex insets in the menu.
This commit is contained in:
parent
30ff6eedfe
commit
bf93b9756e
@ -1204,6 +1204,8 @@ void MenuDefinition::expandFlexInsert(
|
||||
TextClass::InsetLayouts::const_iterator end = insetLayouts.end();
|
||||
for (; cit != end; ++cit) {
|
||||
if (cit->second.lyxtype() == type) {
|
||||
if (!cit->second.obsoleted_by().empty())
|
||||
continue;
|
||||
docstring label = cit->first;
|
||||
// we remove the "Flex:" prefix, if it is present
|
||||
if (prefixIs(label, from_ascii("Flex:")))
|
||||
|
Loading…
x
Reference in New Issue
Block a user