>>
>> I can also reproduce after I have closed the split as follows:
>> 1. Open LyX. Create a section heading (alt-P, 2), can be empty
>> 2. Open a new document (Ctrl-N)
>> 3. Enter an "x"
>> 4. Split the screen (Alt-V, E)
>> 5. Close the split-screen document (Alt-F, C, D)
>> 6. Press "x"
>>
>> I then get a segmentation fault.
>>
> So if before you close, you put the cursor in the *top* view, then you don't
> get the segfault. This is because we then are closing a tab, and so we go
> through on_currentTabChanged(), or something of the sort, which rebuilds all
> the dialogs, including the TOC. But if the cursor is in the lower view, then
> we don't trigger that slot, and nothing gets rebuilt. Then we crash.
>
> I don't know this code well enough myself to know what we need to do here.
> Always doing updateBuffer() after we close a Buffer fixes it, but that's not
> the right fix.

I can't reproduce on Windows, but I can on Linux. (Maybe an
unitialized member or something ?)

Vincent

Reply via email to