Another switch from wxDynamicCast to the normal c++ dynamic_cast

This commit is contained in:
Arthur Moore 2015-01-11 02:23:00 -05:00
parent 7666396b5f
commit 2959b0adfa
1 changed files with 1 additions and 1 deletions

View File

@ -2089,7 +2089,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<wxPropertySheetDialog*>(anObject);
CheckThrowXRCError(dialog,name);
/* wx-2.9.1 doesn't set parent for propertysheetdialogs for some reason */