]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetNote.cpp
requires is a keyword in C++2a
[lyx.git] / src / insets / InsetNote.cpp
index 1c039c3bc52e9742a6f031c90aa9c870d3bce72f..9f4c5ed1d0349b130c81a6bf214db737b183bd1a 100644 (file)
@@ -186,9 +186,6 @@ bool InsetNote::getStatus(Cursor & cur, FuncRequest const & cmd,
        switch (cmd.action()) {
 
        case LFUN_INSET_MODIFY:
-               // disallow comment and greyed out in commands
-               flag.setEnabled(!cur.paragraph().layout().isCommand() ||
-                               cmd.getArg(2) == "Note");
                if (cmd.getArg(0) == "note") {
                        InsetNoteParams params;
                        string2params(to_utf8(cmd.argument()), params);
@@ -315,6 +312,8 @@ void InsetNote::validate(LaTeXFeatures & features) const
                        features.useInsetLayout(getLayout());
                break;
        case InsetNoteParams::Greyedout:
+               if (features.hasRTLLanguage())
+                       features.require("environ");
                InsetCollapsible::validate(features);
                break;
        case InsetNoteParams::Note: