Check for null pointers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bec3b0ddef
commit
25e19bdf01
@ -1056,6 +1056,13 @@ void MyPanel::OnIdle(wxIdleEvent& event)
|
||||
static const int INVALID_SELECTION = -2;
|
||||
|
||||
static int s_selCombo = INVALID_SELECTION;
|
||||
|
||||
if (!m_combo || !m_choice)
|
||||
{
|
||||
event.Skip();
|
||||
return;
|
||||
}
|
||||
|
||||
int sel = m_combo->GetSelection();
|
||||
if ( sel != s_selCombo )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user