]> git.lyx.org Git - features.git/commit
FindAdv: Avoid crash finding char at end of inset
authorKornel Benko <kornel@lyx.org>
Mon, 26 Nov 2018 11:37:18 +0000 (12:37 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:51 +0000 (14:39 +0200)
commitc5fa25b839e64ccb5dbb99e195c6898b5de870e0
tree4d18e1fea61591f9358850cf0349c15198c79fb8
parent64fbd5793dd01341726c11e91ca8899643bebedc
FindAdv: Avoid crash finding char at end of inset

Testcase without this patch:
1.) open de/Additional.lyx
2.) goto 6.1 Astronomy & Astrophysics
3.) open the index
4.) find advaced
a.) not ignoring format
b.) regex = .+
c.) language of regex: English
4.) search next
The seach finds the next break (which is outside of the index)
The following try to display the selection leads to crash
src/lyxfind.cpp