-------- Original-Nachricht -------- > Datum: Thu, 14 Apr 2011 23:58:57 +0200 > Von: Enrico Forestieri <for...@lyx.org> > An: lyx-devel@lists.lyx.org > Betreff: Re: #7394, Crash in reverse serach
> On Thu, Apr 14, 2011 at 09:53:46PM +0200, Peter Kuemmel wrote: > > This patch > > > > http://www.lyx.org/trac/attachment/ticket/7394/resetAnchor.patch > > > > fixes the crash in > > > > http://www.lyx.org/trac/ticket/7394 > > > > But I don't know if it introduces any side effects. > > This is not the correct fix, and neither is removing anchor_.clear(). > For example, the assert is avoided but when you shift-click, the entire > document from the beginning gets selected and not from the cursor > position. Please, find attached the correct fix. > > -- Good, you found a fix, could you commit. But anchor_ = doc_iterator_begin(buffer()); anchor_.clear(); makes no sense anyway. (It was added by Andre 2008). Peter -- GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit gratis Handy-Flat! http://portal.gmx.net/de/go/dsl