Fix crash when getting or setting wxComboBox value in wxUniv.
Forward DoGetValue() and SetValue() to the associated wxTextCtrl. Closes #13298. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -273,12 +273,13 @@ wxComboBox::~wxComboBox()
|
||||
|
||||
wxString wxComboBox::DoGetValue() const
|
||||
{
|
||||
return wxComboCtrl::GetValue();
|
||||
return GetTextCtrl() ? GetTextCtrl()->GetValue() : wxString();
|
||||
}
|
||||
|
||||
void wxComboBox::SetValue(const wxString& value)
|
||||
{
|
||||
wxComboCtrl::SetValue(value);
|
||||
if ( GetTextCtrl() )
|
||||
GetTextCtrl()->SetValue(value);
|
||||
}
|
||||
|
||||
void wxComboBox::WriteText(const wxString& value)
|
||||
|
Reference in New Issue
Block a user