>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:

>> - crash when changing layout
>> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg13171.html

John> In 1.1.6 I can only get crashes from this by saving (either
John> save, or save-while-quitting, or emergency save). A pure virtual
John> function gets called. My debugging efforts failed miserable at
John> this one :(

I can shed more light on this one. When changing the layout to a
command-type layout, the display attribute of insets is reset to false
(around text.C:1044), where the inset here is a formula macro. Then,
in InsetFormula::display(bool), it seems that for whatever unknown
reason, the math inset is cloned and the deleted (??). 

This means that the pointer to the macro inset contained in the math
macro table is now broken, and that anything can happen later.

There was another problem which cause the instant crash referred to in
the bug report, but I fixed this one.

So, I know why it happens, but I really do not know what we want to do
about it.

JMarc

PS: you may want to add this comment to the bug repository.

PPS: am I allowed to add bugs there? I see there is a jmarc user.

Reply via email to