diff --git a/src/wx/guiinit.cpp b/src/wx/guiinit.cpp index 77f1b313..f6b9817b 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -1980,7 +1980,7 @@ wxPropertySheetDialog * MainFrame::LoadXRCropertySheetDialog(const char * name) wxString dname = wxString::FromUTF8(name); //Seems like the only way to do this wxObject * anObject = wxXmlResource::Get()->LoadObject(this, dname, wxEmptyString); - wxPropertySheetDialog * dialog = wxDynamicCast(anObject, wxPropertySheetDialog); + wxPropertySheetDialog * dialog = dynamic_cast(anObject); CheckThrowXRCError(dialog,name); /* wx-2.9.1 doesn't set parent for propertysheetdialogs for some reason */