X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9bf0c6512684a9a4d4d4eb59ff39817a4fda77b..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/xrc/xh_mdi.cpp diff --git a/src/xrc/xh_mdi.cpp b/src/xrc/xh_mdi.cpp index 980367b19d..7a581f8077 100644 --- a/src/xrc/xh_mdi.cpp +++ b/src/xrc/xh_mdi.cpp @@ -107,7 +107,7 @@ wxObject *wxMdiXmlHandler::DoCreateResource() frame->Move(GetPosition()); if (HasParam(wxT("icon"))) { - wxFrame* f = wxDynamicCast(f, wxFrame); + wxFrame* f = wxDynamicCast(frame, wxFrame); if (f) f->SetIcon(GetIcon(wxT("icon"), wxART_FRAME_ICON)); }