X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/697f4a966e71daf9cc88f44c703fba386ad0b0fd..9e19da0f2ad5fe82c24ae82c281786b64d0156d5:/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);