From 7666396b5fba1b77a3e97c9da82da5bcdd6fd4c3 Mon Sep 17 00:00:00 2001 From: Arthur Moore Date: Sun, 11 Jan 2015 02:17:41 -0500 Subject: [PATCH] Change a macro from using a special wx funciton to the regular c++ one More work on fixing Bug #5 --- src/wx/cmdevents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index 90fe5896..f0ba93b0 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -20,7 +20,7 @@ extern "C" { #include "../gba/agbprint.h" #define GetXRCDialog(n) \ - wxStaticCast(FindWindow(XRCID(n)), wxDialog) + dynamic_cast(FindWindow(XRCID(n))) bool cmditem_lt(const struct cmditem &cmd1, const struct cmditem &cmd2) {