mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
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
This commit is contained in:
parent
ab67ce3757
commit
7c3d1d7423
@ -400,7 +400,7 @@ bool findChange(DocIterator & cur, bool next)
|
||||
if (!next)
|
||||
// if we search backwards, take a step forward
|
||||
// to correctly set the anchor
|
||||
cur.forwardPos();
|
||||
cur.top().forwardPos();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user