]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/event.cpp
fixes for animated GIFs playing (patch 1097003)
[wxWidgets.git] / 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;
     }
 }