fixed crashing bug when trying to set colours too soon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4b167aca0c
commit
da9b415349
@ -4909,10 +4909,16 @@ wxTreeItemId wxTreeListCtrl::FindItem (const wxTreeItemId& item, const wxString&
|
||||
{ return m_main_win->FindItem (item, str, flags); }
|
||||
|
||||
bool wxTreeListCtrl::SetBackgroundColour(const wxColour& colour)
|
||||
{ return m_main_win->SetBackgroundColour(colour); }
|
||||
{
|
||||
if (!m_main_win) return false;
|
||||
return m_main_win->SetBackgroundColour(colour);
|
||||
}
|
||||
|
||||
bool wxTreeListCtrl::SetForegroundColour(const wxColour& colour)
|
||||
{ return m_main_win->SetForegroundColour(colour); }
|
||||
{
|
||||
if (!m_main_win) return false;
|
||||
return m_main_win->SetForegroundColour(colour);
|
||||
}
|
||||
|
||||
size_t wxTreeListCtrl::GetColumnCount() const
|
||||
{ return m_main_win->GetColumnCount(); }
|
||||
|
Loading…
Reference in New Issue
Block a user