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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user