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