From da131498e8b5cf9728f011d236a58ba7badf497c Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 2 May 2000 16:19:05 +0000 Subject: [PATCH] Fixed colour buglet in wxListCtrl. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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; }