Fix the selection validity check in wxSingleChoiceDialog.
Fix the typo ("> 0" was used instead of ">= 0") introduced in r63731. Closes #11844. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
32ee98eb76
commit
e0856740af
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user