]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/combobox.cpp
added MacOpenURL() (patch 1235957)
[wxWidgets.git] / src / univ / combobox.cpp
index febde2efc112c6b7910e102e55b076c8dc85947e..b615a9b53727ae8294a715ce9df5615956e337b8 100644 (file)
@@ -389,8 +389,8 @@ void wxComboBox::SetSelection(int n)
     wxCHECK_RET( (n == wxNOT_FOUND || IsValid(n)), _T("invalid index in wxComboBox::Select") );
 
     GetLBox()->SetSelection(n);
-    if ( GetTextCtrl() )
-        GetTextCtrl()->SetValue(GetLBox()->GetString(n));
+
+    SetText(GetLBox()->GetString(n));
 }
 
 int wxComboBox::GetSelection() const