]> 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 8647a82611455383deeb4e03b30ac034924e0ab1..4c011c1a7e1d34af4d75b6cfaa4e097b89d93274 100644 (file)
@@ -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);
 }