Fixed wxCheckBox on wxGTK (SetLabel called before widget creation),

wxListBox::GetSelection returning -1 now doesn't assert; wxProp improvements
for wxGTK; parser.y includes <io.h> under VC++ to eliminate 'read' warning


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-09-07 21:53:34 +00:00
parent e22036dc39
commit b8c631bb29
10 changed files with 44 additions and 56 deletions

View File

@@ -234,7 +234,9 @@ int wxListBox::GetSelection(void) const
child = child->next;
}
}
wxFAIL_MSG("wrong listbox index");
// No, I think it's reasonable to return -1 to indicate
// there is no selection. -- JACS
// wxFAIL_MSG("wrong listbox index");
return -1;
}