Fix a crash when the modified uncompleted macro is a font changing command.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31379 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-09-12 21:20:51 +00:00
parent 1d7d54a4a7
commit 21fcdfb479

View File

@ -634,7 +634,7 @@ bool MathMacro::notifyCursorLeaves(Cursor const & old, Cursor & cur)
cur.recordUndoInset();
cur.popForward();
cur.backspace();
cur.niceInsert(createInsetMath(unfolded_name));
cur.insert(createInsetMath(unfolded_name));
if (left)
cur.backwardPos();
cur.updateFlags(Update::Force);