Edwin Leuven wrote:

>> What doc was that?
> 
> it crashes on the attached...

| \layoutÂCaption
|
| 
AverageÂworkingÂtimeÂrelativeÂtoÂfull-time,ÂbyÂageÂandÂgenderÂ(1999-2002)

THe problem is a caption in a top paragraph. In top paragraphs the
inset_owner is not set on reading and so it crashes.


                // the caption hack:
                if (layout->labeltype == LABEL_SENSITIVE) {
                        pit_type end = paragraphs().size();
                        pit_type tmppit = pit;
                        InsetBase * in = 0;
                        bool isOK = false;
                        while (tmppit != end) {
                                in = pars_[tmppit].inInset();
                                if (in->lyxCode() == InsetBase::FLOAT_CODE ||
                                    in->lyxCode() == InsetBase::WRAP_CODE) {


A dead easy solution is to check for inInset() != 0 before using it
A better solution is to set the owner inset of top paragraphs
A much better solution is to get rid of inset_owner.

Alfredo


Reply via email to