commit bf93b9756ea2706bd016dad4c61172866a52cf88
Author: Juergen Spitzmueller <[email protected]>
Date:   Mon Apr 20 18:10:25 2015 +0200

    Do not show obsoleted flex insets in the menu.

diff --git a/src/frontends/qt4/Menus.cpp b/src/frontends/qt4/Menus.cpp
index c974352..50b23c2 100644
--- a/src/frontends/qt4/Menus.cpp
+++ b/src/frontends/qt4/Menus.cpp
@@ -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:")))

Reply via email to