don't assert in wxUniv SetSelection(wxNOT_FOUND), just clear text zone contents
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -129,6 +129,7 @@ wxMac:
|
|||||||
wxUniv:
|
wxUniv:
|
||||||
|
|
||||||
- Fix wxTextCtrl::SetSelection(-1, -1) to behave as documented (Anders Larsen)
|
- Fix wxTextCtrl::SetSelection(-1, -1) to behave as documented (Anders Larsen)
|
||||||
|
- Fix wxComboBox::SetSelection(wxNOT_FOUND)
|
||||||
- Fix setting background colour for controls with transparent background
|
- Fix setting background colour for controls with transparent background
|
||||||
|
|
||||||
|
|
||||||
|
@@ -390,7 +390,11 @@ void wxComboBox::SetSelection(int n)
|
|||||||
|
|
||||||
GetLBox()->SetSelection(n);
|
GetLBox()->SetSelection(n);
|
||||||
|
|
||||||
SetText(GetLBox()->GetString(n));
|
wxString str;
|
||||||
|
if ( n != wxNOT_FOUND )
|
||||||
|
str = GetLBox()->GetString(n);
|
||||||
|
|
||||||
|
SetText(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxComboBox::GetSelection() const
|
int wxComboBox::GetSelection() const
|
||||||
|
Reference in New Issue
Block a user