diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index d2669df7ad..63bd016986 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2254,7 +2254,7 @@ void wxListMainWindow::SetImageList( wxImageList *imageList, int which ) // calc the spacing from the icon size int width = 0, height = 0; - if ( imageList && imageList->GetImageCount() ) + if ((imageList) && (imageList->GetImageCount()) ) { imageList->GetSize(0, width, height); } @@ -3602,20 +3602,12 @@ void wxListCtrl::OnIdle( wxIdleEvent &WXUNUSED(event) ) bool wxListCtrl::SetBackgroundColour( const wxColour &colour ) { - if ( !wxWindow::SetBackgroundColour( colour ) ) - return FALSE; - if (m_mainWin) { m_mainWin->SetBackgroundColour( colour ); m_mainWin->m_dirty = TRUE; } - if (m_headerWin) - { -// m_headerWin->SetBackgroundColour( colour ); - } - return TRUE; }