]> git.lyx.org Git - features.git/commitdiff
Fix compilation
authorEnrico Forestieri <forenr@lyx.org>
Sun, 19 May 2019 14:34:57 +0000 (16:34 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:30 +0000 (15:48 +0200)
This amends [b88a3747/lyxgit].

src/Cursor.cpp

index 50d0a220ec1c2936fbe32cdb8503c8d699b4625a..4e0dfb2234c6697ee7c021d803b77497056a0765 100644 (file)
@@ -1762,7 +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() {
+               if (!selection.empty() && data && data->numargs()) {
                        macroArg = true;
                        atomAsMacro->setDisplayMode(InsetMathMacro::DISPLAY_INTERACTIVE_INIT, 1);
                } else