From 2959b0adfa7c82bb007a94e2628fd07c16ee2c69 Mon Sep 17 00:00:00 2001 From: Arthur Moore Date: Sun, 11 Jan 2015 02:23:00 -0500 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 0f1d0970..6a5329de 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -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(anObject); CheckThrowXRCError(dialog,name); /* wx-2.9.1 doesn't set parent for propertysheetdialogs for some reason */