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:
Vadim Zeitlin 2010-03-22 11:40:19 +00:00
parent 32ee98eb76
commit e0856740af

View File

@ -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);