Fix compilation

This amends [b88a3747/lyxgit].
This commit is contained in:
Enrico Forestieri 2019-05-19 16:34:57 +02:00
parent b88a37473f
commit 2424851b09

View File

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