X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/390f8114604241cd21193ddb2c624ca21e1f1322..538f3830191e25eaf0edb0a379e08d4f85ee49bc:/src/univ/combobox.cpp diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index 8647a82611..4c011c1a7e 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -130,8 +130,11 @@ wxString wxComboListBox::GetStringValue() const void wxComboListBox::SetStringValue(const wxString& value) { - if ( !value.empty() && (FindString(value) != wxNOT_FOUND) ) - wxListBox::SetStringSelection(value); + if ( !value.empty() ) + { + if (FindString(value) != wxNOT_FOUND) + wxListBox::SetStringSelection(value); + } else wxListBox::SetSelection(-1); }