From: Enrico Forestieri Date: Thu, 28 Oct 2010 11:13:47 +0000 (+0000) Subject: Fix bug #6965 (Crash editing ERT in math mode) X-Git-Tag: 2.0.0~2214 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3ebcbf5b323ae5ee31712464dda051830f963c2d;p=features.git Fix bug #6965 (Crash editing ERT in math mode) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35879 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 3e4f440990..d96dc31b44 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -643,6 +643,7 @@ bool MathMacro::notifyCursorLeaves(Cursor const & old, Cursor & cur) inset_cursor.cell().erase(inset_cursor.pos()); inset_cursor.cell().insert(inset_cursor.pos(), createInsetMath(unfolded_name, cur.buffer())); + cur.resetAnchor(); cur.screenUpdateFlags(cur.result().screenUpdate() | Update::SinglePar); return true; }