]> git.lyx.org Git - features.git/commit
Fix crash when accepting change
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Jun 2014 10:18:09 +0000 (12:18 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Jun 2014 10:23:19 +0000 (12:23 +0200)
commit7c3d1d7423908c4e2481f320876400622f78f359
treea1b456fda31356f166d040a9c3533ec25df30372
parentab67ce3757d76ab4df718f3f085b42420922e480
Fix crash when accepting change

The problem is the use of cursor movement methods to update cursor.
Cursor::forwardPos() steps into insets, which is not always what we
want. The problem here is that there is a math inset just after the
accepted change, and that the cursor steps into it for some reason.

This code is a nightmare anyway.

Fixes: bug #9145
src/lyxfind.cpp