]> git.lyx.org Git - features.git/commit
Fix bug #8884: Crash when "navigate to next change"
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 27 Sep 2013 08:47:36 +0000 (10:47 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Mar 2014 10:16:56 +0000 (11:16 +0100)
commitc98ce56a03411021152b340bdb418d4d01d61548
treeb552d850cfb265e4a2a7b180b3d40eedbe3eb2a6
parent5c4acd6bc0f4794eaea5826fb3c69085ba568149
Fix bug #8884: Crash when "navigate to next change"

The two fixes here a obviously right, although it is not clear why they are sufficient to fix the bug. Anyway I cannot reproduce any crash with it.

 * the first part just conditions a whole if/else to change_next_pos.changed(). Originally, only the if branch was concerned.

 * the second part is to avoid calling CursorSlice::backwardPos() when position is 0. Doing this leads to an assertion.
src/lyxfind.cpp