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
This commit is contained in:
Robert Roebling
2000-05-02 16:19:05 +00:00
parent c518860f60
commit da131498e8

View File

@@ -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;
}