]> git.lyx.org Git - features.git/commitdiff
Remove redundant condition
authorEnrico Forestieri <forenr@lyx.org>
Sun, 19 May 2019 10:33:46 +0000 (12:33 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 19 May 2019 10:33:46 +0000 (12:33 +0200)
The removed condition is always true.
This amends [61efbff5/lyxgit].

src/Cursor.cpp

index 39d9654261ba09fc1fef92bdcb36cd6574280868..50d0a220ec1c2936fbe32cdb8503c8d699b4625a 100644 (file)
@@ -1762,8 +1762,7 @@ bool Cursor::macroModeClose(bool cancel)
                // we have to resolve the macro here manually and check its arity
                // to put the selection behind it if arity > 0.
                MacroData const * data = buffer()->getMacro(atomAsMacro->name());
-               if (!selection.empty() && data && data->numargs()
-                   && data->numargs() - data->optionals() >= 0) {
+               if (!selection.empty() && data && data->numargs() {
                        macroArg = true;
                        atomAsMacro->setDisplayMode(InsetMathMacro::DISPLAY_INTERACTIVE_INIT, 1);
                } else