]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/choicdgg.cpp
Rename delegates to try and stop name clashes, probably with wxWebKitCtrl.
[wxWidgets.git] / src / generic / choicdgg.cpp
index 073e669417ee38d1cf061aabb2706212489c56d2..79f7019d0d5a8fe5fb2ab223aba82cc52993d0da 100644 (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);