From 89438177fec0509014695b40808e7e8dc3219c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Wed, 19 Jan 2005 06:50:18 +0000 Subject: [PATCH] Fix for incomplete setup (wxPalmOS case). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/event.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/event.cpp b/src/common/event.cpp index a2431a5b6c..bab410244b 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -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; } }