Another switch from wxDynamicCast to the normal c++ dynamic_cast

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1271 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
wowzaman12 2015-03-28 13:44:47 +00:00
parent 4894d16219
commit 45f83cb2d5
1 changed files with 1 additions and 1 deletions

View File

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