Do not show obsoleted flex insets in the menu.

This commit is contained in:
Juergen Spitzmueller 2015-04-20 18:10:25 +02:00
parent 30ff6eedfe
commit bf93b9756e

View File

@ -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:")))