rgheck wrote:
Vincent van Ravesteijn - TNW wrote:
Hi,

I encountered a crash of LyX when clicking on the white space below all items in the widget on the left side of the Tools->Preferences dialog. My system is : SVN revision 26036 on Windows XP compiled with MSVC2008.

It appears that item in the code below is a null-pointer when doing so.

void PanelStack::switchPanel(QTreeWidgetItem * item,
        QTreeWidgetItem * previous)
{
    if (item->childCount() > 0)
      ...
}

The patch just adds a

   if( !item )
      return;

to the code and makes the user interface of the panel stack somewhat more intuitive (as it was in previous versions).

Does this bug occur on other platforms as well ?

I don't see this on Linux, but the patch looks like a potentially worthwhile safety measure.

Abdel, you have a view? Can you reproduce?
No, that is a weird bug... surely something else happens earlier. The patch is not harmful but it will hide a real bug so I'd prefer an assertion in order to have a backtrace.

Abdel.


Reply via email to