* 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:
Stefan Schimanski 2007-11-01 14:45:14 +00:00
parent 6aa5467320
commit b5a640d1cc

View File

@ -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;