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:
Włodzimierz Skiba 2005-01-19 06:50:18 +00:00
parent a0be690852
commit 89438177fe

View File

@ -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;
}
}