Fix for incomplete setup (wxPalmOS case).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a0be690852
commit
89438177fe
@ -412,10 +412,12 @@ wxString wxCommandEvent::GetString() const
|
||||
return m_cmdString;
|
||||
else
|
||||
{
|
||||
#if wxUSE_TEXTCTRL
|
||||
wxTextCtrl *txt = wxDynamicCast(m_eventObject, wxTextCtrl);
|
||||
if(txt)
|
||||
return txt->GetValue();
|
||||
else
|
||||
#endif // wxUSE_TEXTCTRL
|
||||
return m_cmdString;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user