Am Donnerstag, 4. Oktober 2018 10:17:43 CEST schrieb Kornel Benko <kor...@lyx.org>: > Both, lyx2.4 and lyx2.3 > To reproduce: > > 1.) Open (or create) a small lyx-file. (Say 3 lines) > 2.) select the whole buffer > 3.) in findadv search for a string (ignore format or not) > ==> crash > > LASSERT() is called at lyxfind.cpp in stringifyFromForSearch() > LASSERT(cur.pos() >= 0 && cur.pos() <= cur.lastpos(), > return docstring()); > > In my case > cur.pos() == 12 > cur.lastpos() == 11 > len == -1 >
OK, selecting the lines so, that the last selected line is longer than the first selected, then we get the crash. Looks like cur.pos() and cur.lastpos() are referring to different lines. Kornel
signature.asc
Description: This is a digitally signed message part.