]> 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:51:40 +0000 (12:51 +0200)
commit3544ce4a4ee9fb788ccaeae9cf1bb6e6c16b7997
tree625c765837794db4f8f586d6b61354c0cc7f463a
parentfff454fa4bde75ca3554fc4b22cfcad6f36b026d
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
status.21x