From 2d5c702a7f95f16b2437037742599085232b1a23 Mon Sep 17 00:00:00 2001 From: wowzaman12 Date: Sat, 28 Mar 2015 13:44:47 +0000 Subject: [PATCH] Another switch from wxDynamicCast to the normal c++ dynamic_cast --- src/wx/guiinit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */