]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/combobox.cpp
updates from Adrián González Alba
[wxWidgets.git] / src / univ / combobox.cpp
index b9b03b00c30de251da08b03efa7a242c92b9049a..4c011c1a7e1d34af4d75b6cfaa4e097b89d93274 100644 (file)
@@ -131,7 +131,10 @@ wxString wxComboListBox::GetStringValue() const
 void wxComboListBox::SetStringValue(const wxString& value)
 {
     if ( !value.empty() )
-        wxListBox::SetStringSelection(value);
+    {
+               if (FindString(value) != wxNOT_FOUND)
+               wxListBox::SetStringSelection(value);
+       }
     else
         wxListBox::SetSelection(-1);
 }