fixed crash on startup under GTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -329,6 +329,8 @@ void MyFrame::TogStyle(int id, long flag)
|
|||||||
void MyFrame::OnIdle(wxIdleEvent& event)
|
void MyFrame::OnIdle(wxIdleEvent& event)
|
||||||
{
|
{
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
|
if ( m_treeCtrl )
|
||||||
|
{
|
||||||
wxTreeItemId idRoot = m_treeCtrl->GetRootItem();
|
wxTreeItemId idRoot = m_treeCtrl->GetRootItem();
|
||||||
|
|
||||||
SetStatusText(wxString::Format
|
SetStatusText(wxString::Format
|
||||||
@@ -338,6 +340,7 @@ void MyFrame::OnIdle(wxIdleEvent& event)
|
|||||||
m_treeCtrl->IsVisible(m_treeCtrl->GetLastChild(idRoot))
|
m_treeCtrl->IsVisible(m_treeCtrl->GetLastChild(idRoot))
|
||||||
? _T("") : _T("not ")
|
? _T("") : _T("not ")
|
||||||
), 1);
|
), 1);
|
||||||
|
}
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
|
|
||||||
event.Skip();
|
event.Skip();
|
||||||
|
Reference in New Issue
Block a user