This is dying in Buffer::isLatex()

bool Buffer::isLatex() const
{
        return textclasslist.TextClass(params.textclass).outputType() == LATEX;
}

This hack works:
bool Buffer::isLatex() const
{
        return true;
}

All displays correctly.

This fails on return:

bool Buffer::isLatex() const
{
        LyXTextClassList::size_type tclass = params.textclass;
        OutputType type = textclasslist.TextClass(tclass).outputType();
        bool result = (type == LATEX);
        lyxerr << "type " << type << " " << LATEX << std::endl;
        lyxerr << "result " << result << std::endl;
        return result;
}

>From dbx:

(dbx) r
Warning: Setting language `default' to `english'.
type 1 1
result 1
signal Segmentation fault at
warning: "buffer.C":2097 has no code associated with it

  [isLatex__C6BufferXv
warning: "buffer.C":2097 has no code associated with it

:2097 +0x201e1d7d,0x1201e1d7c]
line 2097 beyond end of file
(dbx) where
>  0 isLatex__C6BufferXv(this = (nil)) ["buffer.C":2097, 0x1201e1d7c]
   1 __ct__8InsetRefXRC18InsetCommandParamsRC6Buffer(0x0, 0xe, 0x12030ba34, 
0x14

Can some guru explain to me why (this) should be (nil)?

Angus



On Monday 04 December 2000 10:12, Martin Vermeer wrote:

> > Here's a test file created in lyx-1.1.5fix1-1
> that makes the CVS LyX core dump. Apparently
> related to the table format change.
>
> Remove the ref from the table and the crash
> goes away. This is the only thing keeping
> me from upgrading.
>
> Yst. Martin

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="Attachment: 1"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

Reply via email to