Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, March 2002
Likely bug in QTable::takeItem()


Message 1 in thread

The first few lines are currently:

void QTable::takeItem( QTableItem *i )
{
    QRect rect = cellGeometry( i->row(), i->col() );
    if ( !i )
	return;

Clearly this can cause a SEGV when i == 0 and should probably be:

void QTable::takeItem( QTableItem *i )
{
    if ( !i )
	return;
    QRect rect = cellGeometry( i->row(), i->col() );