mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
* one coercion is enough
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21335 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6aa5467320
commit
b5a640d1cc
@ -945,10 +945,10 @@ bool Cursor::macroModeClose()
|
||||
if (in && in->interpretString(*this, s))
|
||||
return true;
|
||||
MathAtom atom = createInsetMath(name);
|
||||
if (atom.nucleus()->asMacro()) {
|
||||
MathMacro * atomAsMacro = atom.nucleus()->asMacro();
|
||||
if (atomAsMacro) {
|
||||
// make non-greedy, i.e. don't eat parameters from the right
|
||||
MathMacro * macro = atom.nucleus()->asMacro();
|
||||
macro->setDisplayMode(MathMacro::DISPLAY_NONGREEDY_INIT);
|
||||
atomAsMacro->setDisplayMode(MathMacro::DISPLAY_NONGREEDY_INIT);
|
||||
}
|
||||
plainInsert(atom);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user