On Mon, Sep 15, 2003 at 04:28:45PM +0000, Angus Leeming spake thusly:
> 
> Martin Vermeer wrote:
> 
> > Create an inset, and an inset inside it, and copy/paste the second one
> > to somewhere else inside the first. Then try to exit. LyX will core
> > dump. (Not if either source or target inset are outside the first
> > inset.)
> 
> All seems fine here. Could you be more precise. What insets did you use?

As follows:

1) create a footnote inset.
2) create a minipage inset inside it.
3) close it by clicking button.
4) paint it to select
5) choose "copy" from menu
6) place cursor after it
7) choose "paste" from menu
8) now you should have two closed minipages side by side in the
footnote.
9) Exit, discard document.

It works just as well if you put two comment or greyedout insets inside 
a note inset. Or whatever. It isn't exactly hard :-(

 
> > Backtrace (sorry, no debug info):
> > 
> > #0  0x40266d41 in __kill () from /lib/libc.so.6
> > #1  0x402669b6 in raise (sig=6) at ../sysdeps/posix/raise.c:27
> > #2  0x402680d8 in abort () at ../sysdeps/generic/abort.c:88
> > #3  0x84d2317 in lyx::support::abort ()
> > #4  0x8122536 in error_handler ()
> > #5  0x40266c68 in __restore ()
> >     at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
> > #6  0x818bebe in Messages::get ()
> > #7  0x80fb794 in _ ()
> > #8  0x82e29b8 in Dialogs::build ()
> > #9  0x82c4ab5 in Dialogs::find ()
> > #10 0x82c5021 in Dialogs::hideSlot ()
> 
> Maybe add some print statements to this. What is "name"? Was the dialog open 
> at the time?

No, it was not.
 
> void Dialogs::hideSlot(string const & name, InsetBase * inset)
> {
>         Dialog * dialog = find(name);
>         if (!dialog)
>                 return;
> 
>         if (inset && inset != getOpenInset(name))
>                 return;
> 
>         if (dialog->isVisible())
>                 dialog->hide();
>         open_insets_[name] = 0;
> }
> 
> Nonetheless, it is pretty crappy that we try and 'build' a dialog on 'hide'...
 
I was amazed to see the backtrace.
 
> -- 
> Angus
> 

- Martin

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to