mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #10498
Use the selection as the argument of a macro also when the macro has only optional arguments.
This commit is contained in:
parent
eb66e68ed5
commit
ad8f574277
@ -1487,7 +1487,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->optionals() > 0) {
|
||||
if (!selection.empty() && data && data->numargs()) {
|
||||
macroArg = true;
|
||||
atomAsMacro->setDisplayMode(InsetMathMacro::DISPLAY_INTERACTIVE_INIT, 1);
|
||||
} else
|
||||
|
@ -57,6 +57,9 @@ The "Rows & Columns" optional submenu has been added to the math context menu.
|
||||
|
||||
- Fix endless loop when a macro definition references itself (bug 11595).
|
||||
|
||||
- Use the selection as the argument of a macro also when the macro has only
|
||||
optional arguments (bug 10498).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user