]> git.lyx.org Git - features.git/commitdiff
Fix a crash when the modified uncompleted macro is a font changing command.
authorEnrico Forestieri <forenr@lyx.org>
Sat, 12 Sep 2009 21:20:51 +0000 (21:20 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 12 Sep 2009 21:20:51 +0000 (21:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31379 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacro.cpp

index 44ea1d49dc787975882f5c5133af2c2b44267736..f29a5e4ac79876b92e01463a9de98fdd9164fff7 100644 (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);