X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/697f4a966e71daf9cc88f44c703fba386ad0b0fd..f32204b0c4c4cc5069ff41088dcbb5bc23a85b34:/src/generic/choicdgg.cpp 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);