]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for incomplete setup (wxPalmOS case).
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 19 Jan 2005 06:50:18 +0000 (06:50 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 19 Jan 2005 06:50:18 +0000 (06:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index a2431a5b6cd8c99426f162e1d11ec205ed0ad2cd..bab410244b6e3799296b279321e431cab39fec1b 100644 (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;
     }
 }