From: Robert Roebling Date: Sat, 13 Sep 2008 20:02:59 +0000 (+0000) Subject: Fix crash X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d27f4c7bcb0e3e973692ced9d8a8587e03c7a658 Fix crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 6e677a242f..6088249d86 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -469,7 +469,8 @@ void wxPGTextCtrlEditor::DrawValue( wxDC& dc, wxPGProperty* property, const wxRe void wxPGTextCtrlEditor::UpdateControl( wxPGProperty* property, wxWindow* ctrl ) const { - wxTextCtrl* tc = wxStaticCast(ctrl, wxTextCtrl); + wxTextCtrl* tc = wxDynamicCast(ctrl, wxTextCtrl); + if (!tc) return; wxString s;