On Fri, Mar 11, 2005 at 11:44:57AM +0200, Martin Vermeer wrote:
> On Fri, 2005-03-11 at 09:01, Juergen Spitzmueller wrote:
> > Martin Vermeer wrote:
> > > Are you sure this bug report is accurate?
> > 
> > Yes, 100% reproducible here (in both my trees).
> > 
> > > I find that inserting a note and doing anything with it does nothing to
> > > crash lyx... but clicking on an end of paragraph gives precisely the
> > > above assert.
> > 
> > I have found out now that there are several ways to trigger this assertion. 
> > Selecting some text with the mouse is another one.
> > 
> > > Try the following change (works for me):
> > >
> > > -       if (row.pos() < end && c >= end
> > > +       if (row.pos() < end && c >= end && end < par.size()
> > 
> > Yes, this works for me too.
> > 
> > Jürgen
> > 
> > P.S.: There is still a way to stick the cursor. If I put the cursor at the 
> > and 
> > of the last paragraph in the test case of bug 1792 and press cursor up, the 
> > cursor moves to the beginning of that paragraph and sticks.
> 
> Indeed... as I now understand what is happening here, see the attached
> patch for your testing and especially edification :-)
> 
> (I hope the long comment is in proper coding style. I think it is needed
> here.)
> 
> Kayvan, this is the fix for your crash.

Thanks. Yes, I just tested and it works.

-- 
Kayvan A. Sylvan          | Proud husband of       | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)

Reply via email to