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:
@@ -412,10 +412,12 @@ wxString wxCommandEvent::GetString() const
|
|||||||
return m_cmdString;
|
return m_cmdString;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if wxUSE_TEXTCTRL
|
||||||
wxTextCtrl *txt = wxDynamicCast(m_eventObject, wxTextCtrl);
|
wxTextCtrl *txt = wxDynamicCast(m_eventObject, wxTextCtrl);
|
||||||
if(txt)
|
if(txt)
|
||||||
return txt->GetValue();
|
return txt->GetValue();
|
||||||
else
|
else
|
||||||
|
#endif // wxUSE_TEXTCTRL
|
||||||
return m_cmdString;
|
return m_cmdString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user