On Mon, Nov 10, 2003 at 11:11:41AM +0100, Andre Poenitz spake thusly:
> 
> On Mon, Nov 10, 2003 at 11:04:44AM +0100, Alfredo Braunstein wrote:
> > Open the UG, click on the first footnote -> crash
> > 
> > The problem is that the bv_owner of the text is set on InsetText::dispatch,
> > but the insetHist check is done before that.
> > 
> > The attached solves it, even if it doesn't seem the right solution. 
> > bv_owner -> bv() changes were good to find the crash.
> > 
> > Index: BufferView_pimpl.C
> > ===================================================================
> > RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v
> > retrieving revision 1.454
> > diff -u -p -u -r1.454 BufferView_pimpl.C
> > --- BufferView_pimpl.C  10 Nov 2003 09:06:31 -0000      1.454
> > +++ BufferView_pimpl.C  10 Nov 2003 09:54:55 -0000
> > @@ -887,6 +887,7 @@ namespace {
> >                 while ((inset_hit = text->checkInsetHit(x, y))) {
> >                         inset = inset_hit;
> >                         text = inset_hit->getText(0);
> > +                       text->init(bv);
> 
> Would just setting the view be enough?
> 
> Andre'

I found that trying to open a closed collapsable inset crashes, but
closing an open one (and opening it again etc.) does not.

Is the bv defined for an inset that is loaded in collapsed state?

- Martin

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to