mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Remove redundant condition
The removed condition is always true. This amends [61efbff5/lyxgit].
This commit is contained in:
parent
ff7eb0eb38
commit
b88a37473f
@ -1762,8 +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() {
|
||||||
&& data->numargs() - data->optionals() >= 0) {
|
|
||||||
macroArg = true;
|
macroArg = true;
|
||||||
atomAsMacro->setDisplayMode(InsetMathMacro::DISPLAY_INTERACTIVE_INIT, 1);
|
atomAsMacro->setDisplayMode(InsetMathMacro::DISPLAY_INTERACTIVE_INIT, 1);
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user