diff --git a/src/generic/choicdgg.cpp b/src/generic/choicdgg.cpp index 073e669417..79f7019d0d 100644 --- a/src/generic/choicdgg.cpp +++ b/src/generic/choicdgg.cpp @@ -531,7 +531,7 @@ bool wxSingleChoiceDialog::Create( wxWindow *parent, // Set the selection void wxSingleChoiceDialog::SetSelection(int sel) { - wxCHECK_RET( sel > 0 && (unsigned)sel < m_listbox->GetCount(), + wxCHECK_RET( sel >= 0 && (unsigned)sel < m_listbox->GetCount(), "Invalid initial selection" ); m_listbox->SetSelection(sel);