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:
@@ -1056,6 +1056,13 @@ void MyPanel::OnIdle(wxIdleEvent& event)
|
|||||||
static const int INVALID_SELECTION = -2;
|
static const int INVALID_SELECTION = -2;
|
||||||
|
|
||||||
static int s_selCombo = INVALID_SELECTION;
|
static int s_selCombo = INVALID_SELECTION;
|
||||||
|
|
||||||
|
if (!m_combo || !m_choice)
|
||||||
|
{
|
||||||
|
event.Skip();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int sel = m_combo->GetSelection();
|
int sel = m_combo->GetSelection();
|
||||||
if ( sel != s_selCombo )
|
if ( sel != s_selCombo )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user